a „oeF ã@sDddlZddlZddlZddlZddlZdZdadd„Zdd„ZdS)éNz Mssccprj.sccc Cs tj |¡\}}|}d}|g}|sztj |t¡}t ddd|¡}t ddd|¡}|rVqztj |¡\}}|slqz| d|¡q|st  d|¡dS|d |¡|fS) zôLooks up the file system for an INI file describing the project. Looking up the tree is for ni style packages. Returns (projectName, pathToFileName) where pathToFileName contains the path from the ini file to the actual file. ÚÚPythonZDatabaseZProjectrz5%s This directory is not configured for Python/VSSNú/) ÚosÚpathÚsplitÚjoinÚ g_iniNameÚwin32apiZ GetProfileValÚinsertÚwin32uiÚ MessageBox) Z fullfnamerZ fnameonlyZorigPathÚprojectZretPathsZiniNameÚdatabaseZaddpath©rúEC:\Program Files\Certbot\pkgs\pythonwin\pywin\framework\editor\vss.pyÚFindVssProjectInfos(ÿrc Cs8ddl}d}z²ddl}ddl}|jj dddd¡}|durJt d¡|WSt|ƒ}|dur`WdS|\}}}t durš|j  d¡a |sˆ|j }t   ||j |j ¡t   d||f¡} |  d|¡d}Wnt|jyò} zt | jd¡WYd} ~ nJd} ~ 0t ¡\} } } t ¡t d t| ƒt| ƒfd¡d} Yn0|S) Nrz&{783CD4E0-9D54-11CF-B8EE-00608CC9A71F}ézEVSS does not appear to be installed. The TypeInfo can not be createdZ SourceSafez$/%s/%sézError checking out filez%s - %s)Ú pythoncomZwin32com.clientZwin32com.client.gencacheZclientZgencacheZ EnsureModuler r rÚ g_sourceSafeZDispatchZMissingZOpenZVSSItemZCheckoutZ com_errorÚstrerrorÚsysÚexc_infoÚ tracebackÚ print_excÚstr)ZfileNamerÚokZwin32comÚmodÚrcrZvssFnamerÚitemÚexcÚtypÚvalÚtbrrrÚ CheckoutFile>sBÿÿ   " r%) rrrr r r rrr%rrrrÚs