Prechádzať zdrojové kódy

feat: run enterprise entrypoint

trgiangdo 1 rok pred
rodič
commit
21043b6ce4
1 zmenil súbory, kde vykonal 6 pridanie a 0 odobranie
  1. 6 0
      taipy/_entrypoint.py

+ 6 - 0
taipy/_entrypoint.py

@@ -11,6 +11,7 @@
 
 import os
 import sys
+from importlib.util import find_spec
 
 from taipy._cli._base_cli import _CLI
 from taipy.core._core_cli import _CoreCLI
@@ -52,3 +53,8 @@ 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()