From 3db31915c6ad8ed762d490c2a684bc402197bdc2 Mon Sep 17 00:00:00 2001 From: jrobinAV <88036007+jrobinAV@users.noreply.github.com> Date: Wed, 21 Jun 2023 21:26:13 +0200 Subject: [PATCH] propagate init file (cherry picked from commit 664bb73645f620f35fe12fb23f75bf20a3e75806) --- src/taipy/__init__.py | 73 +++++++------------------------------------ 1 file changed, 11 insertions(+), 62 deletions(-) diff --git a/src/taipy/__init__.py b/src/taipy/__init__.py index 4b96252..6077499 100644 --- a/src/taipy/__init__.py +++ b/src/taipy/__init__.py @@ -13,73 +13,22 @@ if find_spec("taipy"): if find_spec("taipy.config"): - from taipy.config import Config, Frequency, Scope - - if find_spec("taipy.core"): - from taipy.core._core import Core - from taipy.core.cycle.cycle import Cycle - from taipy.core.cycle.cycle_id import CycleId - from taipy.core.data.data_node import DataNode - from taipy.core.data.data_node_id import DataNodeId - from taipy.core.job.job import Job - from taipy.core.job.job_id import JobId - from taipy.core.job.status import Status - from taipy.core.pipeline.pipeline import Pipeline - from taipy.core.pipeline.pipeline_id import PipelineId - from taipy.core.scenario.scenario import Scenario - from taipy.core.scenario.scenario_id import ScenarioId - from taipy.core.taipy import ( - cancel_job, - clean_all_entities, - clean_all_entities_by_version, - compare_scenarios, - create_pipeline, - create_scenario, - delete, - delete_job, - delete_jobs, - export_scenario, - get, - get_cycles, - get_cycles_scenarios, - get_data_nodes, - get_jobs, - get_latest_job, - get_parents, - get_pipelines, - get_primary, - get_primary_scenarios, - get_scenarios, - get_tasks, - is_deletable, - set, - set_primary, - submit, - subscribe_pipeline, - subscribe_scenario, - tag, - unsubscribe_pipeline, - unsubscribe_scenario, - untag, - ) - from taipy.core.task.task import Task - from taipy.core.task.task_id import TaskId + from taipy.config._init import * # type: ignore if find_spec("taipy.gui"): - from taipy.gui import Gui - - if find_spec("taipy.gui_core"): - from taipy.gui_core.GuiCoreLib import _GuiCore + from taipy.gui._init import * # type: ignore - Gui.add_library(_GuiCore()) + if find_spec("taipy.core"): + from taipy.core._init import * # type: ignore - if find_spec("taipy.enterprise") and find_spec("taipy.enterprise.gui"): - from taipy.enterprise.gui import _init_gui_enterprise + if find_spec("taipy.rest"): + from taipy.rest._init import * # type: ignore - _init_gui_enterprise(Gui) + if find_spec("taipy.gui_core"): + from taipy.gui_core._init import * # type: ignore - if find_spec("taipy.rest"): - from taipy.rest import Rest + if find_spec("taipy.enterprise"): + from taipy.enterprise._init import * # type: ignore if find_spec("taipy._run"): - from taipy._run import _run as run + from taipy._run import _run as run # type: ignore