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

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

Projects
None yet
2 participants
Contributor

anthonyrisinger commented Mar 24, 2013

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.

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

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

Contributor

anthonyrisinger commented Mar 25, 2013

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