summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2009-08-16 23:20:14 -0400
committerColin Walters <walters@verbum.org>2009-08-16 23:20:14 -0400
commita065ef184b3b1d90dc9af9cbe89093542b5e1853 (patch)
tree1442a565d67b5e0caaf4906abde3a85db589326f
parent8ceb93d9259042cc29498f26e25fa6577bf28417 (diff)
downloadgobject-introspection-a065ef184b3b1d90dc9af9cbe89093542b5e1853.tar.gz
Use current working directory for temporary executables
This avoids /tmp noexec madness.
-rw-r--r--giscanner/dumper.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/giscanner/dumper.py b/giscanner/dumper.py
index 0353a2f1..622b2522 100644
--- a/giscanner/dumper.py
+++ b/giscanner/dumper.py
@@ -76,7 +76,9 @@ class DumpCompiler(object):
def __init__(self, options, get_type_functions):
self._options = options
self._get_type_functions = get_type_functions
- self._tmpdir = tempfile.mkdtemp('', 'tmp-introspect')
+ # We have to use the current directory to work around Unix
+ # sysadmins who mount /tmp noexec
+ self._tmpdir = tempfile.mkdtemp('', 'tmp-introspect', dir=os.getcwd())
self._compiler_cmd = os.environ.get('CC', 'gcc')
self._linker_cmd = os.environ.get('LD', self._compiler_cmd)