mirror of
https://github.com/probberechts/soccerdata.git
synced 2026-04-25 10:05:53 +03:00
[GH-ISSUE #479] [Nox] Documentation sessions create a ~ directory #84
Labels
No labels
ESPN
FBref
FotMob
MatchHistory
SoFIFA
Sofascore
WhoScored
WhoScored
bug
build
common
dependencies
discussion
documentation
duplicate
enhancement
good first issue
invalid
performance
pull-request
question
question
removal
understat
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/soccerdata#84
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @JanVanHaaren on GitHub (Feb 11, 2024).
Original GitHub issue: https://github.com/probberechts/soccerdata/issues/479
The
docsanddocs-buildNox sessions create a~directory on my machine, which I believe is unintentional.github.com/probberechts/soccerdata@a565388b1c/noxfile.py (L190)github.com/probberechts/soccerdata@a565388b1c/noxfile.py (L204)The tilde (
~) is not expanded to myhomedirectory, where mysoccerdatadirectory is located.Potential solutions include using
Path.home()as is done elsewhere, usingos.path.expanduser, and usingBASE_DIRfrom_config.py. Depending on which solution is most desirable, I can create a pull request to address this issue.@probberechts commented on GitHub (Feb 11, 2024):
I remember that there was a good reason to use the default '~/soccerdata' instead of the value in
_config.pywhich 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.