Cannot import name MY_CACHE_HOME

Bug #570854 reported by David D Lowe
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Epidermis (abandoned)
Fix Committed
Medium
David D Lowe

Bug Description

Running on Arch Linux, this exception was thrown:

Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/epidermis/epidermis.py", line 39, in <module>
    from const import logger, MY_CACHE_HOME, MY_DATA_HOME, PIGMENT_TYPES
ImportError: cannot import name MY_CACHE_HOME

Related branches

David D Lowe (flimm)
Changed in epidermis:
status: New → Triaged
importance: Undecided → Medium
assignee: nobody → David D Lowe (flimm)
Revision history for this message
Graham Rogers (grogers3-14) wrote :

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')

David D Lowe (flimm)
Changed in epidermis:
status: Triaged → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.