Skip to content

Commit fd6eb1f

Browse files
authored
[python] Correct python import syntax in example (#7617)
fix: #7615
1 parent 120c175 commit fd6eb1f

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

dolphinscheduler-python/pydolphinscheduler/examples/task_dependent_example.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@
3434
3535
task_dependent(this task dependent on task_dependent_external.task_1 and task_dependent_external.task_2).
3636
"""
37-
from constants import ProcessDefinitionDefault
38-
37+
from pydolphinscheduler.constants import ProcessDefinitionDefault
3938
from pydolphinscheduler.core.process_definition import ProcessDefinition
4039
from pydolphinscheduler.tasks.dependent import And, Dependent, DependentItem, Or
4140
from pydolphinscheduler.tasks.shell import Shell

dolphinscheduler-python/pydolphinscheduler/examples/task_switch_example.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,9 @@
2929
.
3030
"""
3131

32-
from tasks.switch import Branch, Default, Switch, SwitchCondition
33-
3432
from pydolphinscheduler.core.process_definition import ProcessDefinition
3533
from pydolphinscheduler.tasks.shell import Shell
34+
from pydolphinscheduler.tasks.switch import Branch, Default, Switch, SwitchCondition
3635

3736
with ProcessDefinition(
3837
name="task_dependent_external",

0 commit comments

Comments
 (0)