From 67d5b75751b1dcb14b88151adc2483d7bf8ae83a Mon Sep 17 00:00:00 2001 From: Valentin Niess Date: Mon, 21 Sep 2020 10:02:29 +0200 Subject: [PATCH] Patch the install & which commands --- python_appimage/__main__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/python_appimage/__main__.py b/python_appimage/__main__.py index 3173972..34804c0 100644 --- a/python_appimage/__main__.py +++ b/python_appimage/__main__.py @@ -89,8 +89,10 @@ def main(): # Call the requested command module = '.commands.' + args.command - if args.sub_command: + try: module += '.' + args.sub_command + except AttributeError: + pass command = import_module(module, package=__package__) # check if the module has a 'execute' subcommand