diff options
Diffstat (limited to 'giscanner/dumper.py')
-rw-r--r-- | giscanner/dumper.py | 4 |
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) |