Current File : //lib/python2.7/site-packages/euca2ools/commands/__init__.pyc
�
��Xc@s�ddlZddlZddlZddlZddlZddlZddlmZdZ	dZ
dZdefd��YZ
dS(i����N(t__version__s/usr/share/euca2oolss/etc/euca2oolss~/.eucat	Euca2oolscBsweZdZejjed�ejjedd�ejjed�fZd�Z	e
d��Zd�Zd�Z
RS(sT
    A class with attributes and methods that define the entire euca2ools suite
    s
euca2ools.inisconf.ds*.inicCs
d|_dS(N(tNonet_Euca2ools__user_agent(tself((s?/usr/lib/python2.7/site-packages/euca2ools/commands/__init__.pyt__init__3scCsdjt�g}yVtjjd�rgtd��}|j�j�}WdQX|jdj|��nWnnXdj	|�S(Nseuca2ools {0} (Newton)s"/etc/eucalyptus/eucalyptus-versionseucalyptus {0}s
(
tformatRtostpathtisfiletopentreadlinetstriptappendtjoin(t
version_linestver_fileteuca_version((s?/usr/lib/python2.7/site-packages/euca2ools/commands/__init__.pytformat_version7scCs�g}dtjkr0tjd�jd�}n	|j}xH|D]@}tjjtjj|��}|jt	t
j
|���q@W|S(NtEUCA_CONFIG_PATHt:(RtenvirontgetenvtsplittCONFIG_PATHSRt
expandusert
expandvarstextendtsortedtglob(Rtconfig_filestconfig_globstconfig_globtexpanded((s?/usr/lib/python2.7/site-packages/euca2ools/commands/__init__.pytlist_config_filesFs	
 cCs�|jdkr�djt�g}g}tj�}|dkr�djtjjtjj	tjj
�}tjjdkr�|tjj7}q�ntj�}|j
dj||��g}y*|j
tj��|j
tj��Wntk
r�nX|r|j
dj|��n|j
tj��|j
djdj|���|j
d	jtj��|j
d
jtj��dj|�|_n|jS(Ns
euca2ools/{0}tPyPys{0}.{1}.{2}tfinals{0} {1}t s({0})s; srequestbuilder/{0}srequests/{0}(RRRRtplatformtpython_implementationtsystpypy_version_infotmajortminortmicrotreleaseleveltpython_versionR
tsystemtreleasetIOErrorRtmachinetrequestbuildertrequests(Rtuser_agent_bitsttokenstimpltimpl_versiontplat((s?/usr/lib/python2.7/site-packages/euca2ools/commands/__init__.pytget_user_agentQs8		

(t__name__t
__module__t__doc__RRRt
SYSCONFDIRtUSERCONFDIRRRtstaticmethodRR"R:(((s?/usr/lib/python2.7/site-packages/euca2ools/commands/__init__.pyR*s		(Rtos.pathRR&R(R3R4t	euca2oolsRtDATADIRR>R?tobjectR(((s?/usr/lib/python2.7/site-packages/euca2ools/commands/__init__.pyt<module>s