flow_type_1
flow1.py
common_utils
flow_type_2
flow2.py
common_utils
common_utils
__init__.py
some_module.py
flow_type_1/common_utils and flow_type_2/common_utils are symlinks pointing to the shared common_utils package.
1
Define the shared package
Define the functionality you want to reuse in a Python package:Export it from the package’s initialization module:
common_utils/some_module.py
common_utils/__init__.py
2
Create the symlink
Add a symlink from the flow’s directory to the shared package:
3
Import the package in a flow
flow_type_1/flow1.py
4
Run the flow