From 3c2d00f0a65587b8a1b4c08101b1961e882aa61b Mon Sep 17 00:00:00 2001 From: Oleksii Shevchuk Date: Tue, 21 Aug 2018 11:36:17 +0300 Subject: [PATCH] Use proper CWD during build-docker --- create-workspace.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/create-workspace.py b/create-workspace.py index 5b5a67f2..c1aa453d 100755 --- a/create-workspace.py +++ b/create-workspace.py @@ -69,14 +69,13 @@ def main(): if not args.do_not_compile_templates: print "[+] Compile common templates" - os.chdir(os.path.join(args.pupy_git_folder, 'client')) env = os.environ.copy() if args.docker_repo: env['REPO'] = args.docker_repo subprocess.check_call([ - './build-docker.sh' - ], env=env, cwd=pupy) + os.path.join(args.pupy_git_folder, 'client', 'build-docker.sh') + ], env=env, cwd=os.path.join(args.pupy_git_folder, 'client')) print "[+] Create VirtualEnv environment"