瀏覽代碼

Patch the install & which commands

Valentin Niess 5 年之前
父節點
當前提交
67d5b75751
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      python_appimage/__main__.py

+ 3 - 1
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