Skip to content

Commit

Permalink
fix: prevent circular dependency
Browse files Browse the repository at this point in the history
- put check_existing_dir back in its place
  • Loading branch information
18alantom committed Jan 15, 2024
1 parent 87d4aa3 commit 7bcea60
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bench/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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"]
Expand Down

0 comments on commit 7bcea60

Please sign in to comment.