[fix] for bench get-app

This commit is contained in:
Rushabh Mehta 2018-05-27 14:28:30 +05:30
parent 354efd5351
commit 4aff164b69

View file

@ -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')