ó
âdc           @` s\   d  Z  d d l m Z m Z m Z m Z e Z d d l Z d d g Z	 d „  Z
 d „  Z d S(   uá   Functions related to directory manipulations, imported before the rest of
pygimplib is initialized.

This module should not be used directly. Use the `path` package as the contents
of this module are included in the package.
i    (   t   absolute_importt   divisiont   print_functiont   unicode_literalsNu	   make_dirsu
   split_pathc         C` s‚   y t  j |  ƒ Wnj t k
 r} } | j t  j j k rM t  j j |  ƒ rM q~ | j t  j j k rw t  j j |  ƒ rw q~ ‚  n Xd S(   u‰   
  Recursively create directories from the specified directory path.
  
  Do not raise exception if the directory path already exists.
  N(   t   ost   makedirst   OSErrort   errnot   EEXISTt   patht   isdirt   EACCES(   t   dirpatht   exc(    (    sL   /home/josie/.config/GIMP/2.10/plug-ins/export_layers/pygimplib/_path_dirs.pyt	   make_dirs   s    ''c         C` sz   t  j j |  ƒ }  g  } |  } xU t ru t  j j | ƒ \ } } | rX | j d | ƒ q! | rq | j d | ƒ n  Pq! W| S(   u=   
  Split the specified path into separate path components.
  i    (   R   R	   t   normpatht   Truet   splitt   insert(   R	   t   path_componentst   headt   tail(    (    sL   /home/josie/.config/GIMP/2.10/plug-ins/export_layers/pygimplib/_path_dirs.pyt
   split_path-   s    	(   t   __doc__t
   __future__R    R   R   R   t   unicodet   strR   t   __all__R   R   (    (    (    sL   /home/josie/.config/GIMP/2.10/plug-ins/export_layers/pygimplib/_path_dirs.pyt   <module>   s   "		                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     # -*- coding: utf-8 -*-

"""Constants used in other modules."""

from __future__ import absolute_import, division, print_function, unicode_literals
from future.builtins import *

__all__ = [
  'GTK_CHARACTER_ENCODING',
  'GIMP_CHARACTER_ENCODING',
  'TEXT_FILE_ENCODING',
]


GTK_CHARACTER_ENCODING = 'utf-8'
GIMP_CHARACTER_ENCODING = 'utf-8'
TEXT_FILE_ENCODING = 'utf-8'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           