diff options
author | Dieter Verfaillie <dieterv@optionexplicit.be> | 2011-09-05 21:31:50 +0200 |
---|---|---|
committer | Dieter Verfaillie <dieterv@optionexplicit.be> | 2011-09-07 22:01:04 +0200 |
commit | f2a70843905839a1b11795310d2aa3b85a474e77 (patch) | |
tree | 27dc9738fc0d470772630b6c9bea7a5b090745cb /giscanner/dumper.py | |
parent | 3f69acab9c41bb7d036d1a25843a0bc642bbde06 (diff) | |
download | gobject-introspection-f2a70843905839a1b11795310d2aa3b85a474e77.tar.gz |
Windows port: the tmpfile is going to be an exe...
... on Windows, so take care of the extension.
https://bugzilla.gnome.org/show_bug.cgi?id=620566
Diffstat (limited to 'giscanner/dumper.py')
-rw-r--r-- | giscanner/dumper.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/giscanner/dumper.py b/giscanner/dumper.py index 61cba257..3f79bfa6 100644 --- a/giscanner/dumper.py +++ b/giscanner/dumper.py @@ -145,7 +145,13 @@ class DumpCompiler(object): f.close() o_path = self._generate_tempfile(tmpdir, '.o') - bin_path = self._generate_tempfile(tmpdir) + + if os.name == 'nt': + ext = 'exe' + else: + ext = None + + bin_path = self._generate_tempfile(tmpdir, ext) try: self._compile(o_path, c_path) |