Use pyxdg:
import xdg.BaseDirectory, os
MY_CACHE_HOME = os.path.join(xdg.BaseDirectory.xdg_cache_home, 'epidermis') MY_CONFIG_HOME = xdg.BaseDirectory.save_config_path('epidermis') MY_DATA_HOME = xdg.BaseDirectory.save_data_path('epidermis')
Use pyxdg:
import xdg.BaseDirectory, os
MY_CACHE_HOME = os.path. join(xdg. BaseDirectory. xdg_cache_ home, 'epidermis') ry.save_ config_ path('epidermis ') ry.save_ data_path( 'epidermis' )
MY_CONFIG_HOME = xdg.BaseDirecto
MY_DATA_HOME = xdg.BaseDirecto