Make gdbus-codegen 'relocatable' at runtime on Windows.
authorDieter Verfaillie <dieterv@optionexplicit.be>
Tue, 23 Aug 2011 05:36:47 +0000 (06:36 +0100)
committerColin Walters <walters@verbum.org>
Thu, 25 Aug 2011 21:23:00 +0000 (17:23 -0400)
https://bugzilla.gnome.org/show_bug.cgi?id=650763

gio/gdbus-2.0/codegen/gdbus-codegen.in

index 16360d6..ae900bb 100644 (file)
@@ -29,6 +29,9 @@ srcdir = os.getenv('UNINSTALLED_GLIB_SRCDIR', None)
 
 if srcdir is not None:
     path = os.path.join(srcdir, 'gio', 'gdbus-2.0')
+elif os.name == 'nt':
+    # Makes gdbus-codegen 'relocatable' at runtime on Windows.
+    path = os.path.join(os.path.dirname(__file__), '..', 'lib', 'gdbus-2.0')
 else:
     path = os.path.join('@libdir@', 'gdbus-2.0')