Make gdbus-codegen 'relocatable' at runtime on Windows.

https://bugzilla.gnome.org/show_bug.cgi?id=650763
This commit is contained in:
Dieter Verfaillie 2011-08-23 06:36:47 +01:00 committed by Colin Walters
parent acb5b852c1
commit a2614efd14

View 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')