rootname as class variables#16
Merged
adrn merged 3 commits intoadrn:config-custom-dirfrom Oct 19, 2017
Merged
Conversation
Cadair
commented
Jul 11, 2017
|
|
||
| # this is not in __all__ because it's not intended that a user uses it | ||
| def update_default_config(pkg, default_cfg_dir_or_fn, version=None): | ||
| def update_default_config(pkg, default_cfg_dir_or_fn, version=None, rootname='astropy'): |
Author
There was a problem hiding this comment.
I did this just in case, and it might be useful in the package template. Not a clue though.
edb47a8 to
16a6b5a
Compare
adrn
reviewed
Oct 1, 2017
astropy/config/configuration.py
Outdated
| package or module. | ||
| """ | ||
| cfg = get_config(packageormod) | ||
| cfg = get_config(packageormod, rootname=None) |
Owner
|
If you rebase, I think your changes could be merged. I'll then take a look at how to finish this up! |
4ea151e to
3918757
Compare
Author
|
@adrn rebased at last. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A package that wanted to customise this would then have a
configsubpackage that looks like this:then just import configs from it's own namespace rather than astropy's?