??????????????
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 173
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 174
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 175
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 176
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 177
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 178
ó
ĉ\c @ sK d d l Z d d l j Z d d l m Z m Z d e f d YZ d S( i˙˙˙˙N( t ConfigObjt ConfigObjErrort Locatorc B s} e Z d Z d g Z d Z e d Z d Z d d Z d Z
d Z d d Z d Z
d
Z d Z RS(
s$
Profiles locator and enumerator.
t _load_directoriesc C s. t | t k r! t d n | | _ d S( Ns( load_directories parameter is not a list( t typet listt TypeErrorR ( t selft load_directories( ( s: /usr/lib/python2.7/site-packages/tuned/profiles/locator.pyt __init__ s c C s | j S( N( R ( R ( ( s: /usr/lib/python2.7/site-packages/tuned/profiles/locator.pyR s c G s5 t | d g } t j j | } t j j | S( Ns
tuned.conf( R t ost patht joint normpath( R t
path_partst config_name( ( s: /usr/lib/python2.7/site-packages/tuned/profiles/locator.pyt _get_config_filename s c C sp xi t | j D]X } | j | t j j | } | d k rR | | k rR q n t j j | r | Sq Wd S( N( t reversedR R R
R t basenamet Nonet isfile( R t profile_namet
skip_filest dir_namet config_file( ( s: /usr/lib/python2.7/site-packages/tuned/profiles/locator.pyt
get_config s c C s" | d k o! | d k o! d | k S( Nt t /( R ( R R ( ( s: /usr/lib/python2.7/site-packages/tuned/profiles/locator.pyt check_profile_name_format' s c C sp | j | s d S| j | } | d k r2 d Sy t | d t d t SWn t t t f k
rk } d SXd S( Nt list_valuest
interpolation( R R R R t Falset IOErrort OSErrorR ( R R R t e( ( s: /usr/lib/python2.7/site-packages/tuned/profiles/locator.pyt parse_config* s c C s\ y t | } Wn t k
r2 | g } d } n Xy t | } Wn t k
re | g } d } n X| | k r | | d g | | } n | j | } | d k rı t d d d g St j | k rĜ | t j } n t } t | g } xh t | | D]W \ } }
| d k s!| d k r;t | d <| d g } qŭ | | j
| |
g } qŭ W| S( Ni i˙˙˙˙R i ( t lenR R# R R t constst PLUGIN_MAIN_UNIT_NAMEt dictt Truet zipt get( R R t attrst defvalst attrs_lent defvals_lent configt dt valst attrt defval( ( s: /usr/lib/python2.7/site-packages/tuned/profiles/locator.pyt get_profile_attrs: s2
c C s t } xw | j D]l } yR xK t j | D]: } | j | | } t j j | r, | j | q, q, WWq t k
r~ q Xq W| S( N( t setR R
t listdirR R R t addR! ( R t profilesR R R ( ( s: /usr/lib/python2.7/site-packages/tuned/profiles/locator.pyt
list_profilesY s
c C s t | j S( N( t sortedR9 ( R ( ( s: /usr/lib/python2.7/site-packages/tuned/profiles/locator.pyt get_known_namese s c C sE g t | j D]. } | | j | t j g d g d f ^ q S( NR i ( R: R9 R4 R% t PROFILE_ATTR_SUMMARY( R t profile( ( s: /usr/lib/python2.7/site-packages/tuned/profiles/locator.pyt get_known_names_summaryh s N( t __name__t
__module__t __doc__t __slots__R t propertyR R R R R R# R4 R9 R; R> ( ( ( s: /usr/lib/python2.7/site-packages/tuned/profiles/locator.pyR s
( R
t tuned.constsR% t configobjR R t objectR ( ( ( s: /usr/lib/python2.7/site-packages/tuned/profiles/locator.pyt s