From 7bcea6099da1a41ad530bdd85ff337f627039b80 Mon Sep 17 00:00:00 2001
From: 18alantom <2.alan.tom@gmail.com>
Date: Mon, 15 Jan 2024 13:40:26 +0530
Subject: [PATCH] fix: prevent circular dependency - put check_existing_dir
back in its place
---
bench/app.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/bench/app.py b/bench/app.py
index 7a66ec086..45a9c3d82 100755
--- a/bench/app.py
+++ b/bench/app.py
@@ -25,7 +25,6 @@
get_available_folder_name, get_bench_cache_path,
is_bench_directory, is_git_url,
is_valid_frappe_branch, log, run_frappe_cmd)
-from bench.utils.app import check_existing_dir
from bench.utils.bench import build_assets, install_python_dev_dependencies
from bench.utils.render import step
@@ -447,6 +446,7 @@ def get_app(
import bench as _bench
import bench.cli as bench_cli
from bench.bench import Bench
+ from bench.utils.app import check_existing_dir
bench = Bench(bench_path)
app = App(git_url, branch=branch, bench=bench, soft_link=soft_link, commit_hash=commit_hash)
@@ -547,6 +547,7 @@ def install_resolved_deps(
skip_assets=False,
verbose=False,
):
+ from bench.utils.app import check_existing_dir
if "frappe" in resolution:
# Terminal dependency
del resolution["frappe"]