summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDieter Verfaillie <dieterv@optionexplicit.be>2011-09-05 21:31:50 +0200
committerDieter Verfaillie <dieterv@optionexplicit.be>2011-09-07 22:01:04 +0200
commitf2a70843905839a1b11795310d2aa3b85a474e77 (patch)
tree27dc9738fc0d470772630b6c9bea7a5b090745cb
parent3f69acab9c41bb7d036d1a25843a0bc642bbde06 (diff)
downloadgobject-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
-rw-r--r--giscanner/dumper.py8
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)