-
Notifications
You must be signed in to change notification settings - Fork 293
Closed
Labels
enhancementMaking something betterMaking something betterproposalProposals for enhancements, changes, etcProposals for enhancements, changes, etc
Description
Bug report
Bug summary
Since yt 4.0 we support two locations to store a configuration file yt.toml
, namely $XDG_CONFIG/yt/yt.toml
(this is the global configuration) and ./yt.toml
(local)
Now, assuming a data exploration project organised into subfolders, for instance
.
├── scripts
│ ├── exp1
│ │ ├── t1.py
│ │ ├── t2.py
│ │ └── t3.py
│ └── exp2
│ ├── t1.py
│ ├── t2.py
│ └── t3.py
└── yt.toml
The results of any script will differ depending on wether it's launched from the top level of the project (where yt.toml
lives) or from within their respective containing directories.
To solve this, we could implement an upward lookup routine to check for yt.toml
files in all parents directories until it is found (or we reach root /
).
There is a precedent to the proposed behaviour: many tools already implement this mechanism, for instance
Metadata
Metadata
Assignees
Labels
enhancementMaking something betterMaking something betterproposalProposals for enhancements, changes, etcProposals for enhancements, changes, etc