B
    b¹_í  ã               @   sJ   d Z dZddlZddlZddlZdd„ Zddd„Zddd„Zddd„ZdS )zMpath.py is a utility containing some very simple path utilities for Py to usez.David N. Mashburn <david.n.mashburn@gmail.com>é    Nc               C   s   t t ¡ ƒ d S )N)ÚprintÚosÚgetcwd© r   r   ú)lib/python3.7/site-packages/wx/py/path.pyÚpwd
   s    r   Tc             C   s(   t  t j t j | ¡¡¡ |r$tƒ  d S )N)r   ÚchdirÚpathÚ
expandvarsÚ
expanduserr   )r	   ZusePrintr   r   r   Úcd   s    r   Ú*Fc             C   s\   t   tj tj | ¡¡¡}|r6x8|D ]}t|ƒ q$W n"x |D ]}ttj |¡d ƒ q<W d S )Né   )Úglobr   r	   r
   r   r   Úsplit)ÚstrZfullpathÚgÚir   r   r   Úls   s    

r   Ú c             C   s   t t | ¡ƒ d S )N)r   Ú
subprocessZ	getoutput)r   r   r   r   Úsx!   s    r   )T)r   F)r   )	Ú__doc__Ú
__author__r   r   r   r   r   r   r   r   r   r   r   Ú<module>   s   

