ok

Mini Shell

Direktori : /usr/lib/python2.7/site-packages/tuned/utils/
Upload File :
Current File : //usr/lib/python2.7/site-packages/tuned/utils/global_config.pyc

�
��\c@s�ddlZddlmZmZddlmZddlmZddl	j
Z
ddlmZdgZ
ejj�Zddd��YZdS(	i����N(t	ConfigObjtConfigObjError(t	Validator(tTunedException(tcommandstGlobalConfigcBs�eZdejdejdejdejgZejd�Z	ejd�Z
d
d�Zd
d�Z
d�Zd
d	�ZRS(s$dynamic_tuning = boolean(default=%s)s$sleep_interval = integer(default=%s)s%update_interval = integer(default=%s)s'recommend_command = boolean(default=%s)cCs)i|_|jd|�t�|_dS(Nt	file_name(t_cfgtload_configRt_cmd(tselftconfig_file((s=/usr/lib/python2.7/site-packages/tuned/utils/global_config.pyt__init__s	cCs�tjd|�y4t|d|jdtdtdtdt�|_WnEtk
rj}td|��n#t	k
r�}td|��nXt
�}|jj|d	t�s�td
|��ndS(s&
		Loads global configuration file.
		s2reading and parsing global configuration file '%s't
configspectraise_errorst
file_errortlist_valuest
interpolations/Global tuned configuration file '%s' not found.s3Error parsing global tuned configuration file '%s'.tcopys2Global tuned configuration file '%s' is not valid.N(tlogtdebugRtglobal_config_spectTruetFalseRtIOErrorRRRtvalidate(R
Rtetvdt((s=/usr/lib/python2.7/site-packages/tuned/utils/global_config.pyRs	cCs|jj||�S(N(Rtget(R
tkeytdefault((s=/usr/lib/python2.7/site-packages/tuned/utils/global_config.pyR(scCs,|jj|j||��dkr(tStS(Nt1(R	tget_boolRRR(R
RR((s=/usr/lib/python2.7/site-packages/tuned/utils/global_config.pyR +s$cCs||j|<dS(N(R(R
Rtvalue((s=/usr/lib/python2.7/site-packages/tuned/utils/global_config.pytset0scCs`|j|�}|dkr|S|jj|�}|dkrXtjd||f�|S|SdS(Ns%Error parsing value '%s', using '%s'.(RtNoneR	tget_sizeRterror(R
RRtvaltret((s=/usr/lib/python2.7/site-packages/tuned/utils/global_config.pyR$3sN(t__name__t
__module__tconststCFG_DEF_DYNAMIC_TUNINGtCFG_DEF_SLEEP_INTERVALtCFG_DEF_UPDATE_INTERVALtCFG_DEF_RECOMMEND_COMMANDRtGLOBAL_CONFIG_FILERRR#RR R"R$(((s=/usr/lib/python2.7/site-packages/tuned/utils/global_config.pyRs


	((t
tuned.logsttunedt	configobjRRRRttuned.exceptionsRttuned.constsR*ttuned.utils.commandsRt__all__tlogsRRR(((s=/usr/lib/python2.7/site-packages/tuned/utils/global_config.pyt<module>s	

Zerion Mini Shell 1.0