Fix getting the directory path on Mac OS X.

This commit is contained in:
R W H Bricheno 2017-10-30 10:36:40 +00:00 committed by David Wilson
parent c09dcd82a7
commit 39f325af3e
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ def sh(s, *args):
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:
dockerfile_fp.write(DOCKERFILE)
dockerfile_fp.flush()