You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2020/04/24 17:45:28 UTC

[GitHub] [airflow] mik-laj edited a comment on issue #8527: Relative paths get wrong expansion

mik-laj edited a comment on issue #8527:
URL: https://github.com/apache/airflow/issues/8527#issuecomment-618398091


   This is behavior, which is rather difficult to change in Airflow1.10. I always recommend using paths relative to the current file. Then you can move all the file to a subdirectory and everything will still work properly.
   ```python
   CURRENT_FOLDER = os.path.abspath(os.path.dirname(os.path.realpath(__file__)))
   ```
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org