Skip to content

Commit

Permalink
fix: dont show warning message in developer mode
Browse files Browse the repository at this point in the history
  • Loading branch information
gavindsouza committed Jul 3, 2020
1 parent e26a0a9 commit ce0a3de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bench/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"):
Expand Down

0 comments on commit ce0a3de

Please sign in to comment.