fixed base path finding
This commit is contained in:
parent
6ec2191315
commit
6f9eef8d1f
2
admin.py
Normal file → Executable file
2
admin.py
Normal file → Executable file
@ -18,7 +18,7 @@ class Admin(Cmd):
|
|||||||
|
|
||||||
def prepare_stage(self):
|
def prepare_stage(self):
|
||||||
print('>> backing up a directory')
|
print('>> backing up a directory')
|
||||||
os.chdir(Path(__file__).parent.parent)
|
os.chdir(Path(__file__).absolute().parent.parent)
|
||||||
|
|
||||||
print('>> deleting old deployment stage')
|
print('>> deleting old deployment stage')
|
||||||
shutil.rmtree(stage_dir, ignore_errors=True)
|
shutil.rmtree(stage_dir, ignore_errors=True)
|
||||||
|
Loading…
Reference in New Issue
Block a user