mirror of
https://github.com/frappe/bench.git
synced 2025-01-09 08:30:39 +00:00
fix: Setup chdir patch earlier
Setup monkey patching before any other bench code decides to chdir
This commit is contained in:
parent
e58a56e247
commit
db165d1f9b
@ -60,6 +60,7 @@ def execute_cmd(check_for_update=True, command: str = None, logger: Logger = Non
|
|||||||
|
|
||||||
|
|
||||||
def cli():
|
def cli():
|
||||||
|
setup_clear_cache()
|
||||||
global from_command_line, bench_config, is_envvar_warn_set, verbose
|
global from_command_line, bench_config, is_envvar_warn_set, verbose
|
||||||
|
|
||||||
from_command_line = True
|
from_command_line = True
|
||||||
@ -75,7 +76,6 @@ def cli():
|
|||||||
change_working_directory()
|
change_working_directory()
|
||||||
logger = setup_logging()
|
logger = setup_logging()
|
||||||
logger.info(command)
|
logger.info(command)
|
||||||
setup_clear_cache()
|
|
||||||
|
|
||||||
bench_config = get_config(".")
|
bench_config = get_config(".")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user