mirror of
https://github.com/frappe/bench.git
synced 2025-01-10 00:37:51 +00:00
chdir only if it exists
This commit is contained in:
parent
0275a23e75
commit
09b0067992
@ -63,7 +63,8 @@ def change_dir():
|
|||||||
if os.path.exists(dir_path_file):
|
if os.path.exists(dir_path_file):
|
||||||
with open(dir_path_file) as f:
|
with open(dir_path_file) as f:
|
||||||
dir_path = f.read().strip()
|
dir_path = f.read().strip()
|
||||||
os.chdir(dir_path)
|
if os.path.exists(dir_path):
|
||||||
|
os.chdir(dir_path)
|
||||||
|
|
||||||
def frappe(bench='.'):
|
def frappe(bench='.'):
|
||||||
f = get_frappe(bench=bench)
|
f = get_frappe(bench=bench)
|
||||||
|
Loading…
Reference in New Issue
Block a user