summaryrefslogtreecommitdiff
path: root/morph
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2012-05-29 11:17:42 +0000
committerRichard Maw <richard.maw@codethink.co.uk>2012-05-30 13:00:57 +0100
commit34817d54a193c6c0937ef3868f31d822e90aa740 (patch)
tree0c95d89292ea0b6f58a9be36529ede5adf4648db /morph
parent353242ae57b7b47f2bba38ea557c73dd9cacf72b (diff)
downloadmorph-34817d54a193c6c0937ef3868f31d822e90aa740.tar.gz
morph.runcmd: set TMPDIR from --tempdir
Diffstat (limited to 'morph')
-rwxr-xr-xmorph4
1 files changed, 4 insertions, 0 deletions
diff --git a/morph b/morph
index 7f5969bb..0d9564c5 100755
--- a/morph
+++ b/morph
@@ -860,6 +860,10 @@ class Morph(cliapp.Application):
msg = kwargs['msg']
del kwargs['msg']
+ if 'env' not in kwargs:
+ kwargs['env'] = dict(os.environ)
+ kwargs['env'].update(TMPDIR=self.settings['tempdir'])
+
# convert the command line arguments into a string
commands = [argv] + list(args)
for command in commands: