;ō ŅXAc@sdZdkZdkZdklZhZy eidZeidƒZ Wn-e j o!eiddddgZ nXd „Z d d „Z d „Z dS( sThis module implements the Choices system for user preferences. The environment variable CHOICESPATH gives a list of directories to search for choices. Changed choices are saved back to the first directory in the list. The choices system is DEPRECATED. See choices.migrate(). N(sexistss CHOICESPATHs:sHOMEs/Choicess/usr/local/share/Choicess/usr/share/ChoicescCsc|tjpt‚xDtD]<}|o/|d|d|}t|ƒo|SqWqqWtSdS(szWhen you want to load user choices, use this function. 'dir' is the subdirectory within Choices where the choices are saved (usually this will be the name of your program). 'leaf' is the file within it. If serveral files are present, the most important one is returned. If no files are there, returns None. Eg ('Edit', 'Options') - > '/usr/local/share/Choices/Edit/Options's/N( sdirs _migratedsAssertionErrorspathsspathsleafsfullsexistssNone(sdirsleafsfullspath((sU/mnt/gmirror/ports/devel/py-roxlib/work/rox-lib2-2.0.5/ROX-Lib2/python/rox/choices.pysloads icCsĒ|tjpt‚td}| otSn|otii |ƒ oti |dƒn|d|}|otii |ƒ oti |dƒn|d|SdS(s•Returns a path to save to, or None if saving is disabled. If 'create' is FALSE then no directories are created. 'dir' and 'leaf' are as for load().ii˙s/N( sdirs _migratedsAssertionErrorspathsspsNonescreatesosspathsexistssmkdirsleaf(sdirsleafscreatesp((sU/mnt/gmirror/ports/devel/py-roxlib/work/rox-lib2-2.0.5/ROX-Lib2/python/rox/choices.pyssave(s cCs,|tjpt‚tt|/dir (if it exists) to $XDG_CONFIG_HOME/site/dir, and put a symlink in its place. The choices load and save functions cannot be used for 'dir' after this; use the basedir module instead. 'site' should be a domain name owned or managed by you. Eg: choices.migrate('Edit', 'rox.sourceforge.net')iNs/s[Old config directory '%s' and new config directory '%s' both exist. Not migrating settings!(sdirs _migratedsAssertionErrorsTruespathss home_choicessfullsosspathsislinksexistssbasedirsjoinsxdg_config_homessitesdestssyssstderrssite_dirsisdirsmakedirssrenamessymlink(sdirssitesfullsdestsbasedirssite_dirs home_choices((sU/mnt/gmirror/ports/devel/py-roxlib/work/rox-lib2-2.0.5/ROX-Lib2/python/rox/choices.pysmigrate;s&  ' (s__doc__sosssyssos.pathsexistss _migratedsenvironspathssplitspathssKeyErrorsloadssavesmigrate( sloadspathsssavesexistssmigratessysspaths _migratedsos((sU/mnt/gmirror/ports/devel/py-roxlib/work/rox-lib2-2.0.5/ROX-Lib2/python/rox/choices.pys?s