Fix uninstalled parser execution
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Thu, 28 May 2009 12:15:55 +0000 (14:15 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Thu, 28 May 2009 12:15:55 +0000 (14:15 +0200)
parser/gapi-parser.cs

index 56ba5c5..8fc1387 100644 (file)
@@ -152,7 +152,8 @@ namespace GtkSharp.Parsing {
                                                                \r
                                                string[] filenames = (string[]) realfiles.ToArray (typeof (string));\r
                                                string pp_args = String.Join (" ", filenames);\r
-                                               system ("gapi_pp.pl " + pp_args + " | gapi2xml.pl " + ns + " " + prefile + " " + lib);\r
+                                               string path = Path.GetDirectoryName (System.Reflection.Assembly.GetCallingAssembly ().Location);\r
+                                               system (path + "/gapi_pp.pl " + pp_args + " | " + path + "/gapi2xml.pl " + ns + " " + prefile + " " + lib);\r
                                        }\r
                                }\r
                        \r