fixed base path finding

This commit is contained in:
aj 2020-07-28 14:33:12 +01:00
parent 6ec2191315
commit 6f9eef8d1f

2
admin.py Normal file → Executable file
View File

@ -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)