|
From: Michael F. <fuz...@vo...> - 2010-01-24 19:32:43
|
On 24/01/2010 13:11, Jason Baker wrote: > I'm using configobj for envbuilder[1]. There's one place where I'm a > bit stuck and I'm curious if there's any way around it. Essentially, > I have a section that defines a set of packages (parcels) to be > checked out from SCM, and another section that defines commands to be > run against all parcels. Here's the example from the readme: > Heh. I don't have any brilliant ideas - a phase of post-processing sounds like the best way to me. All the best, Michael > [project] > parcels = 'envbuilder', # Note the comma > > [[DEFAULT]] > git_checkout = 'git clone $url' > cwd = '/home/jason/src/envbuilder-src' > python = '$cwd/bin/python' > > [[envbuilder]] > dir = 'envbuilder' > url = 'git://github.com/jasonbaker/envbuilder.git' > setup = '$python setup.py develop' > checkout = '$git_checkout' > > [commands] > [[ status ]] > required = True > default = 'git status' > working_dir = '$$PARCEL_WD' > help = 'Check the status of all checked-out parcels' > > The working_dir's value of $$PARCEL_WD is a bit of a hack. I just go > in and substitute the parcel's working directory for $PARCEL_WD > *after* interpolation has already run. What would be nice is if I > could access the parcel's option dir. Bear in mind that since parcels > are defined as a __many__ subsection, I need to get the value for > *each* parcel. > > I understand that this will likely require me to write some code > somewhere (either in configobj or in envbuilder), but can someone help > me figure out the best way to go about solving this problem? > > [1] http://github.com/jasonbaker/envbuilder > > ------------------------------------------------------------------------------ > Throughout its 18-year history, RSA Conference consistently attracts the > world's best and brightest in the field, creating opportunities for Conference > attendees to learn about information security's most important issues through > interactions with peers, luminaries and emerging and established companies. > http://p.sf.net/sfu/rsaconf-dev2dev > _______________________________________________ > Configobj-develop mailing list > Con...@li... > https://lists.sourceforge.net/lists/listinfo/configobj-develop > -- http://www.ironpythoninaction.com/ http://www.voidspace.org.uk/blog READ CAREFULLY. By accepting and reading this email you agree, on behalf of your employer, to release me from all obligations and waivers arising from any and all NON-NEGOTIATED agreements, licenses, terms-of-service, shrinkwrap, clickwrap, browsewrap, confidentiality, non-disclosure, non-compete and acceptable use policies (”BOGUS AGREEMENTS”) that I have entered into with your employer, its partners, licensors, agents and assigns, in perpetuity, without prejudice to my ongoing rights and privileges. You further represent that you have the authority to release me from any BOGUS AGREEMENTS on behalf of your employer. |