³ò
Pt¡Ic           @   s=   d  Z  d d k Z d d k Z d „  Z d „  Z d „  Z d S(   s    Portability functions for Comix.iÿÿÿÿNc           C   sG   t  i d j o# t i i t i i d ƒ d ƒ Sn t i i d ƒ Sd S(   sÆ   On UNIX-like systems, this method will return the path of the home
    directory, e.g. /home/username. On Windows, it will return a Comix
    sub-directory of <Documents and Settings/Username>.
    t   win32t   ~t   ComixN(   t   syst   platformt   ost   patht   joint
   expanduser(    (    (    sK   /home/sork/Pontus/Programmering/Python/Comix/comix-4.0.4/src/portability.pyt   get_home_directory   s    #c          C   sV   t  i d j o t ƒ  Sn8 t i d t i i t ƒ  d ƒ ƒ }  t i i |  d ƒ Sd S(   s7  Return the path to the Comix config directory. On UNIX, this will
    be $XDG_CONFIG_HOME/comix, on Windows it will be the same directory as
    get_home_directory().
    
    See http://standards.freedesktop.org/basedir-spec/latest/ for more
    information on the $XDG_CONFIG_HOME environmental variable.
    R    t   XDG_CONFIG_HOMEs   .configt   comixN(   R   R   R	   R   t   getenvR   R   (   t	   base_path(    (    sK   /home/sork/Pontus/Programmering/Python/Comix/comix-4.0.4/src/portability.pyt   get_config_directory   s
    	c          C   sV   t  i d j o t ƒ  Sn8 t i d t i i t ƒ  d ƒ ƒ }  t i i |  d ƒ Sd S(   s1  Return the path to the Comix data directory. On UNIX, this will
    be $XDG_DATA_HOME/comix, on Windows it will be the same directory as
    get_home_directory().
    
    See http://standards.freedesktop.org/basedir-spec/latest/ for more
    information on the $XDG_DATA_HOME environmental variable.
    R    t   XDG_DATA_HOMEs   .local/shareR   N(   R   R   R	   R   R   R   R   (   R   (    (    sK   /home/sork/Pontus/Programmering/Python/Comix/comix-4.0.4/src/portability.pyt   get_data_directory"   s
    	(   t   __doc__R   R   R	   R   R   (    (    (    sK   /home/sork/Pontus/Programmering/Python/Comix/comix-4.0.4/src/portability.pys   <module>   s
   		