Explorar o código

Merge pull request #672 from Avaiga/feature/run-enterprise-entrypoint

Đỗ Trường Giang hai 1 ano
pai
achega
1c5fbb61aa
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  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
@@ -39,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