Skip to content

Load config file which is located outside package directory #5429

Answered by tachyondecay
wigging asked this question in Q&A
Discussion options

You must be logged in to vote

The simplest answer is: use an absolute path.

Relative paths are relative to the app config object's root path, which by default will be app.root_path, which can be a couple of different things depending on how your package is configured. If you’re using a src layout, you might want to install your package in editable mode.

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@davidism
Comment options

@wigging
Comment options

@davidism
Comment options

@wigging
Comment options

@ThiefMaster
Comment options

Answer selected by wigging
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants