ok
Direktori : /proc/thread-self/root/proc/self/root/usr/lib/python2.7/site-packages/tuned/profiles/ |
Current File : //proc/thread-self/root/proc/self/root/usr/lib/python2.7/site-packages/tuned/profiles/locator.pyc |
� ��\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"