ó àqLc@sLdZdZdgZddlZdZdZd„Zd„Zd„Z dS(sengine.SCons.Variables.BoolVariable This file defines the option type for SCons implementing true/false values. Usage example: opts = Variables() opts.Add(BoolVariable('embedded', 'build for an embedded system', 0)) ... if env['embedded'] == 1: ... sIsrc/engine/SCons/Variables/BoolVariable.py 5023 2010/06/14 22:05:46 sconst BoolVariableiÿÿÿÿNtytyesttruettt1tontalltntnotfalsetft0tofftnonecCs@|jƒ}|tkrtS|tkr,tStd|ƒ‚dS(sJ Converts strings to True/False depending on the 'truth' expressed by the string. If the string can't be converted, the original value will be returned. See '__true_strings' and '__false_strings' for values considered 'true' or 'false respectivly. This is usable as 'converter' for SCons' Variables. s$Invalid value for boolean option: %sN(tlowert__true_stringstTruet__false_stringstFalset ValueError(tvaltlval((sl/home/als/proj/qrscanner/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Variables/BoolVariable.pyt _text2bool/s   cCs=||ttfkr9tjjd|||fƒ‚ndS(sy Validates the given value to be either '0' or '1'. This is usable as 'validator' for SCons' Variables. s'Invalid value for boolean option %s: %sN(RRtSConstErrorst UserError(tkeyRtenv((sl/home/als/proj/qrscanner/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Variables/BoolVariable.pyt _validator@s cCs|d||ttfS(s The input parameters describe a boolen option, thus they are returned with the correct converter and validator appended. The 'help' text will by appended by '(yes|no) to show the valid valued. The result is usable for input to opts.Add(). s %s (yes|no)(RR(Rthelptdefault((sl/home/als/proj/qrscanner/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Variables/BoolVariable.pyRKs (RsyesstrueRRsonsall(RsnosfalseR R soffR( t__doc__t __revision__t__all__t SCons.ErrorsRRRRRR(((sl/home/als/proj/qrscanner/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Variables/BoolVariable.pyt s