faint-park-88214
06/10/2023, 12:56 AMcurved-island-17262
06/10/2023, 5:35 AMflow.py.
In the example below, it will package all the Python files under main and therefore you can import them when running it remotely.
.
|-- flow.py
`-- src
`-- main.py
If you have another type of file added such as an SQL script, by default it will not be packaged, you will need to specify the appropriate extension to package via --package-suffixes=.sql
.
|-- flow.py
`-- src
|-- main.py
`-- query.sql
If you want to package modules that exist outside of the flow directory level, by default it will not work.
.
|-- flows
| `-- flow.py
`-- src
|-- main.py
`-- query.sql
You would need to perform a symlink of the module inside the Flow directory scope via cd flows && ln -s ../src
The directory will look like this now:
.
|-- flows
| |-- flow.py
| `-- src -> ../src
`-- src
|-- main.py
`-- query.sqlfaint-park-88214
06/10/2023, 6:17 PM