parsing of the command line

Nagy Thomas tnagy256 at yahoo.fr
Tue Jan 10 11:23:42 CET 2006


> Nagy Thomas wrote:
> 
> >That variable (ARGUMENTS) could not be accessed
> from a
> >tool (generic.py), but perhaps you have a
> workaround ?
> >
> For now I add the ARGUMENTS to the config
> config = {
>           'modules'  : 'generic cppunit',
>           'builddir' : 'build', # put all object
> files under 'build/'
>           'config.h' : 1, # mechanism should be ok
>           'rpath'    : 1, # incomplete
>           'bootstrap': 1, # incomplete
>           #'colorful' : not
> os.environ.has_key('NOCOLORS'), # only with 
> scons >= 0.96.91 - now miniscons
>           'colorful' : 0,
>           'arguments' : ARGUMENTS
>          }

Clever trick, i did not think about this :)

> And in configure I do a:
> 
> I add the arguments to the env with env(...,
> ARGS=arguments)
> 
> I know it is not very clean, but It works.

Looks good enough for me.

Regards,
Thomas


/* Thomas Nagy */


	

	
		
___________________________________________________________________________ 
Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs exceptionnels pour appeler la France et l'international.
Téléchargez sur http://fr.messenger.yahoo.com


More information about the Kde-buildsystem mailing list