Fix getting the directory path on Mac OS X.

wip-fakessh-exit-status
R W H Bricheno 7 years ago committed by David Wilson
parent c09dcd82a7
commit 39f325af3e

@ -49,7 +49,7 @@ def sh(s, *args):
return shlex.split(s) return shlex.split(s)
mydir = os.path.dirname(__file__) mydir = os.path.abspath(os.path.dirname(__file__))
with tempfile.NamedTemporaryFile(dir=mydir) as dockerfile_fp: with tempfile.NamedTemporaryFile(dir=mydir) as dockerfile_fp:
dockerfile_fp.write(DOCKERFILE) dockerfile_fp.write(DOCKERFILE)
dockerfile_fp.flush() dockerfile_fp.flush()

Loading…
Cancel
Save