[gobject-introspection] Windows port: the tmpfile is going to be an exe...



commit f2a70843905839a1b11795310d2aa3b85a474e77
Author: Dieter Verfaillie <dieterv optionexplicit be>
Date:   Mon Sep 5 21:31:50 2011 +0200

    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

 giscanner/dumper.py |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/giscanner/dumper.py b/giscanner/dumper.py
index 61cba25..3f79bfa 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)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]