Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Directly support imports from the same file, but a different section #191

Open
anthonyrisinger opened this issue Mar 24, 2013 · 3 comments

Comments

@anthonyrisinger
Copy link
Contributor

this can technically be implemented using:

ini = %o:__new__
ini = %o:__init__

...but it can cause the paths to be resolved and/or change from the first, and IMO feels clunky (we currently use this to essentially pack all our environment configs into one, for convenience... short of full config generation, i like it :)

would it be awkward to allow something like (examples):

ini = :__init__
ini = .:__init__

...i know i looked into this before and it seemed doable, but i ran a bit short on time.

@unbit
Copy link
Owner

unbit commented Mar 24, 2013

i like the first form

ini = :section

should be pretty easy to implement, i will work on that soon

@unbit
Copy link
Owner

unbit commented Mar 25, 2013

implemented with c9bc066

it works only for .ini files as the other parsers should be heavily changed (expecially the xml one) to avoid loops

@anthonyrisinger
Copy link
Contributor Author

nice nice, yeah i saw this last night, thanks.

i am planning a mass exodus of my apps to JSON configs soon[-ish] ... should we leave the ticket open until a solution for other configs emerges?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants