diff --git a/frappe/utils/bench_helper.py b/frappe/utils/bench_helper.py index 69625f3abf..2925f8e1c9 100644 --- a/frappe/utils/bench_helper.py +++ b/frappe/utils/bench_helper.py @@ -60,7 +60,7 @@ def get_sites(site_arg): return [f.read().strip()] def get_app_commands(app): - if os.path.exists(frappe.get_app_path(app, 'commands.py'))\ + if os.path.exists(os.path.join('..', 'apps', app, 'commands.py'))\ or os.path.exists(frappe.get_app_path(app, 'commands', '__init__.py')): try: app_command_module = importlib.import_module(app + '.commands')