From 34817d54a193c6c0937ef3868f31d822e90aa740 Mon Sep 17 00:00:00 2001 From: Richard Maw Date: Tue, 29 May 2012 11:17:42 +0000 Subject: morph.runcmd: set TMPDIR from --tempdir --- morph | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'morph') 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: -- cgit v1.2.1