Cannot import name MY_CACHE_HOME
Bug #570854 reported by
David D Lowe
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/
from const import logger, MY_CACHE_HOME, MY_DATA_HOME, PIGMENT_TYPES
ImportError: cannot import name MY_CACHE_HOME
Related branches
Changed in epidermis: | |
status: | New → Triaged |
importance: | Undecided → Medium |
assignee: | nobody → David D Lowe (flimm) |
Changed in epidermis: | |
status: | Triaged → Fix Committed |
To post a comment you must log in.
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