Xc@sddlZddlZddlZddlZddlZddlZddlmZdZ dZ dZ de fdYZ dS(iN(t __version__s/usr/share/euca2oolss/etc/euca2oolss~/.eucat Euca2oolscBsweZdZejjedejjeddejjedfZdZ e dZ dZ dZ 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__3scCsdjtg}yVtjjdrgtd}|jj}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_version7scCsg}dtjkr0tjdjd}n |j}xH|D]@}tjjtjj|}|jt t j |q@W|S(NtEUCA_CONFIG_PATHt:( Rtenvirontgetenvtsplitt CONFIG_PATHSRt expandusert expandvarstextendtsortedtglob(Rt config_filest config_globst config_globtexpanded((s?/usr/lib/python2.7/site-packages/euca2ools/commands/__init__.pytlist_config_filesFs   cCs|jdkrdjtg}g}tj}|dkrdjtjjtjj tjj }tjj dkr|tjj 7}qn tj }|j dj||g}y*|j tj|j tjWntk rnX|r|j dj|n|j tj|j djdj||j d jtj|j d jtjdj||_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 SYSCONFDIRt USERCONFDIRRRt 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__.pyts