瀏覽代碼

fix: enterprise entrypoint should be called before parsing other parser

trgiangdo 1 年之前
父節點
當前提交
85450e4bb1
共有 1 個文件被更改,包括 5 次插入5 次删除
  1. 5 5
      taipy/_entrypoint.py

+ 5 - 5
taipy/_entrypoint.py

@@ -40,6 +40,11 @@ def _entrypoint():
     _MigrateCLI.create_parser()
     _HelpCLI.create_parser()
 
+    if find_spec("taipy.enterprise"):
+        from taipy.enterprise._entrypoint import _entrypoint as _enterprise_entrypoint
+
+        _enterprise_entrypoint()
+
     args = _CLI._parse()
     if args.version:
         print(f"Taipy {_get_version()}")  # noqa: T201
@@ -53,8 +58,3 @@ def _entrypoint():
 
     _CLI._remove_argument("help")
     _CLI._parser.print_help()
-
-    if find_spec("taipy.enterprise"):
-        from taipy.enterprise._entrypoint import _entrypoint as _enterprise_entrypoint
-
-        _enterprise_entrypoint()