Closed JanVanHaaren closed 7 months ago
I remember that there was a good reason to use the default '~/soccerdata' instead of the value in _config.py
which might be overridden by an environment variable. However, I forgot the reason 🤔
Replacing '~' with Path.home()
would be a good solution. Feel free to create a PR. Otherwise I can easily fix this myself.
The
docs
anddocs-build
Nox sessions create a~
directory on my machine, which I believe is unintentional.https://github.com/probberechts/soccerdata/blob/a565388b1cb359e25ad1a902059fb947ea559831/noxfile.py#L190
https://github.com/probberechts/soccerdata/blob/a565388b1cb359e25ad1a902059fb947ea559831/noxfile.py#L204
The tilde (
~
) is not expanded to myhome
directory, where mysoccerdata
directory is located.Potential solutions include using
Path.home()
as is done elsewhere, usingos.path.expanduser
, and usingBASE_DIR
from_config.py
. Depending on which solution is most desirable, I can create a pull request to address this issue.