I’ve noticed that whenever I import airflow in Python, it automatically creates an airflow directory in my home directory. Literally just this
$ python
Python 3.11.9 | packaged by conda-forge | (main, Apr 19 2024, 18:36:13) [GCC 12.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.path.exists(os.path.join(os.path.expanduser('~'), 'airflow'))
False
>>> import airflow
>>> os.path.exists(os.path.join(os.path.expanduser('~'), 'airflow'))
True
I understand that’s because I don’t have AIRFLOW_HOME set. So it appears airflow is using home directory as a default location if the AIRFLOW_HOME env var is not set.
But why is it doing that in the first place? I’m just importing airflow library, without even beginning to do anything.
Is it possible to disable this behavior?