summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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: