
    iA                     b    S SK r S SKr S SKJr  S r\S:X  a  \" 5         gg! \ a    S r Nf = f)    N)autocompletec                     g )N )parsers    TC:\des-py\RoboSAPF\venv\Lib\site-packages\PyInstaller/utils/cliutils/grab_version.pyr   r      s        c                  "   [         R                  " SS9n U R                  SSSS9  U R                  SSS	S
SS9  [        U 5        U R	                  5       n SSKJn  UR                  UR                  5      nU(       d  [        S5      e[        R                  " UR                  SS5       nUR                  [        U5      5        S S S 5        [        SUR                  < 35        g ! , (       d  f       N(= f! [          a    [        S5      ef = f)NzThe printed output may be saved to a file, edited and used as the input for a version resource on any of the executable targets in a PyInstaller .spec file.)epilogexe_filezexe-filez%full pathname of a Windows executable)metavarhelpout_filenamezout-filename?zfile_version_info.txtz5filename where the grabbed version info will be saved)r   nargsdefaultr   r   )versioninfoz,ERROR: VersionInfo resource not found in exewzutf-8zVersion info written to: zAborted by user request.)argparseArgumentParseradd_argumentr   
parse_argsPyInstaller.utils.win32r   !read_version_info_from_executabler   
SystemExitcodecsopenr   writestrprintKeyboardInterrupt)r   argsr   infofps        r   runr$      s   $$BF 4  
 'D   D	57<<T]]KKLL[[**C9RHHSY :)$*;*;)>?@ :9  53445s%   AC8 *C'!C8 '
C51C8 8D__main__)r   r   argcompleter   ImportErrorr$   __name__r   r   r   <module>r)      sF     ( 5F zE S  s   " 	..