[fix] for bench get-app
This commit is contained in:
parent
354efd5351
commit
4aff164b69
1 changed files with 1 additions and 1 deletions
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue