You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Could please someone explain what was the idea of commons folder usage? Properly, I mean how to import?.
Airflow has the init func prepare_syspath() that ensures that certain subfolders of AIRFLOW_HOME are on the classpath.
That allows to import modules from folders like DAGS_FOLDER/third_party, PLUGINS_FOLDER/third_party.
For instance i have the next structure:
── module /
│ ├── commons
│ └── dags
What have to be specified for DAGS_FOLDER to be able to import modules from commons into DAG-files.
Do I have to extend sys.path manually? If I keep this by default I will get a module import error.
I'd like to make it clear how to import modules from commons folders. Why commons dirs are on that project's structure level?
The text was updated successfully, but these errors were encountered:
Hi.
Could please someone explain what was the idea of
commons
folder usage? Properly, I meanhow to import?
.Airflow has the init func
prepare_syspath()
that ensures that certain subfolders of AIRFLOW_HOME are on the classpath.That allows to import modules from folders like DAGS_FOLDER/third_party, PLUGINS_FOLDER/third_party.
For instance i have the next structure:
── module /
│ ├── commons
│ └── dags
What have to be specified for
DAGS_FOLDER
to be able to import modules fromcommons
into DAG-files.Do I have to extend sys.path manually? If I keep this by default I will get a module import error.
I'd like to make it clear how to import modules from
commons
folders. Whycommons
dirs are on that project's structure level?The text was updated successfully, but these errors were encountered: