Fix getting the directory path on Mac OS X.
This commit is contained in:
parent
a01c929d76
commit
5a9c9d7101
|
@ -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…
Reference in New Issue