B
    KDb}                 @   s   d dl Z dd ZdS )    Nc              C   s^   ddl } | jdd}|jjj}t|}td|}|j}|jjj	dd }d
|||}|S )z9
    get version details
    :return: version detail
    r   NT)Zsearch_parent_directoriesz%Y-%m-%d %H:%M:%S   z{}({})-Build:{})gitZRepoheadobjectcommitted_datetime	localtimestrftimeZactive_branchZhexshaformat)r   ZrepoZcommitted_date_timestampZ
time_localr   branchZsha_1version r   -G:\easytimepro\master/mysite/tools\version.pyget_version   s    

r   )r   r   r   r   r   r   <module>   s   