diff options
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/g-ir-tool-template.in | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/g-ir-tool-template.in b/tools/g-ir-tool-template.in index 39b1b3d8..83279bd4 100755 --- a/tools/g-ir-tool-template.in +++ b/tools/g-ir-tool-template.in @@ -61,7 +61,12 @@ builtins.__dict__['DATADIR'] = datadir # Again, relative paths first so that the installation prefix is relocatable pylibdir = os.path.abspath(os.path.join(filedir, '..', 'lib', 'gobject-introspection')) -if not os.path.isfile(os.path.join(pylibdir, 'giscanner', '_giscanner.so')): + +py_mod_suffix = 'so' +if os.name == 'nt': + py_mod_suffix = 'pyd' + +if not os.path.isfile(os.path.join(pylibdir, 'giscanner', '_giscanner.' + py_mod_suffix)): # Running uninstalled? builddir = os.getenv('UNINSTALLED_INTROSPECTION_BUILDDIR', None) if builddir is not None: |