Skip to content

How to import packages in the DAG folder when using git-sync sidecar? #818

Discussion options

You must be logged in to vote

You're going to have to add /opt/airflow/dags/repo/ to Python's sys.path. You can use the env var PYTHONPATH.

airflow:
  extraEnv:
    - name: "PYTHONPATH"
      value: "/opt/airflow/dags/repo/"

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ketozhang
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant