From 6f9eef8d1f31cb32e668bf17a720625f5cd2603c Mon Sep 17 00:00:00 2001 From: aj Date: Tue, 28 Jul 2020 14:33:12 +0100 Subject: [PATCH] fixed base path finding --- admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 admin.py diff --git a/admin.py b/admin.py old mode 100644 new mode 100755 index b8e50db..7fbab95 --- a/admin.py +++ b/admin.py @@ -18,7 +18,7 @@ class Admin(Cmd): def prepare_stage(self): print('>> backing up a directory') - os.chdir(Path(__file__).parent.parent) + os.chdir(Path(__file__).absolute().parent.parent) print('>> deleting old deployment stage') shutil.rmtree(stage_dir, ignore_errors=True)