From c49b48e9feb53b9423c613f7188188a41f92201c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Thu, 28 May 2009 14:15:55 +0200 Subject: [PATCH] Fix uninstalled parser execution --- parser/gapi-parser.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/parser/gapi-parser.cs b/parser/gapi-parser.cs index 56ba5c5031..8fc1387a51 100644 --- a/parser/gapi-parser.cs +++ b/parser/gapi-parser.cs @@ -152,7 +152,8 @@ namespace GtkSharp.Parsing { string[] filenames = (string[]) realfiles.ToArray (typeof (string)); string pp_args = String.Join (" ", filenames); - system ("gapi_pp.pl " + pp_args + " | gapi2xml.pl " + ns + " " + prefile + " " + lib); + string path = Path.GetDirectoryName (System.Reflection.Assembly.GetCallingAssembly ().Location); + system (path + "/gapi_pp.pl " + pp_args + " | " + path + "/gapi2xml.pl " + ns + " " + prefile + " " + lib); } }