From ce0a3de259d8f90749ff54ef1161b58ebc4f3d8f Mon Sep 17 00:00:00 2001 From: Gavin D'souza Date: Fri, 3 Jul 2020 16:17:49 +0530 Subject: [PATCH] fix: dont show warning message in developer mode --- bench/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bench/cli.py b/bench/cli.py index bf0b5231..63369a1d 100755 --- a/bench/cli.py +++ b/bench/cli.py @@ -32,7 +32,7 @@ def cli(): change_dir() change_uid() - if is_dist_editable(bench.PROJECT_NAME) and len(sys.argv) > 1 and sys.argv[1] != "src": + if is_dist_editable(bench.PROJECT_NAME) and len(sys.argv) > 1 and sys.argv[1] != "src" and not get_config(".").get("developer_mode"): log("bench is installed in editable mode!\n\nThis is not the recommended mode of installation for production. Instead, install the package from PyPI with: `pip install frappe-bench`\n", level=3) if not is_bench_directory() and not cmd_requires_root() and len(sys.argv) > 1 and sys.argv[1] not in ("init", "find", "src"):