Browse Source

Merge pull request #50 from Avaiga/feature/#48-allow-taipy-enterprise-loading

Load taipy enterprise if present
Jean-Robin 2 years ago
parent
commit
ed020e2484
1 changed files with 5 additions and 0 deletions
  1. 5 0
      taipy/__init__.py

+ 5 - 0
taipy/__init__.py

@@ -17,6 +17,11 @@ if find_spec('taipy.core'):
 if find_spec('taipy.gui'):
     from taipy.gui import Gui
 
+    if find_spec('taipy.enterprise') and find_spec('taipy.enterprise.gui'):
+        from taipy.enterprise.gui import _init_gui_enterprise
+
+        _init_gui_enterprise(Gui)
+
 if find_spec('taipy.rest'):
     from taipy.rest import Rest