From 5a9c9d71013f82152e8960e404b318e01e601ba3 Mon Sep 17 00:00:00 2001 From: R W H Bricheno Date: Mon, 30 Oct 2017 10:36:40 +0000 Subject: [PATCH] Fix getting the directory path on Mac OS X. --- tests/build_docker_image.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/build_docker_image.py b/tests/build_docker_image.py index 0a020629..c64c985a 100755 --- a/tests/build_docker_image.py +++ b/tests/build_docker_image.py @@ -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()