2
0
mirror of https://github.com/frappe/bench.git synced 2025-01-09 16:36:25 +00:00

fix: Setup chdir patch earlier

Setup monkey patching before any other bench code decides to chdir
This commit is contained in:
Gavin D'souza 2023-01-24 15:21:24 +05:30
parent e58a56e247
commit db165d1f9b

View File

@ -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(".")