Skip to content

Commit 7ec3021

Browse files
author
yashreddy
committed
fix: add frappe app warnings to bench start
1 parent 4fdaaf6 commit 7ec3021

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

bench/commands/utils.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import click
66

77

8+
89
@click.command("start", help="Start Frappe development processes")
910
@click.option("--no-dev", is_flag=True, default=False)
1011
@click.option(
@@ -17,6 +18,15 @@
1718
@click.option("--procfile", "-p", type=str)
1819
@click.option("--man", "-m", help="Process Manager of your choice ;)")
1920
def start(no_dev, concurrency, procfile, no_prefix, man):
21+
22+
# for editable mode check
23+
try:
24+
import frappe
25+
from frappe.utils.bench_helper import check_non_editable_apps
26+
check_non_editable_apps()
27+
except Exception:
28+
pass
29+
2030
from bench.utils.system import start
2131

2232
start(

0 commit comments

Comments
 (0)