general: Fix linux specific path

This commit is contained in:
Dylan Araps 2017-08-25 19:53:55 +10:00
parent 3c7b0fd840
commit 8d0e3d4ed4
2 changed files with 2 additions and 2 deletions

View File

@ -89,7 +89,7 @@ def get(img, cache_dir=CACHE_DIR,
color_count=COLOR_COUNT, notify=False):
"""Get the colorscheme."""
# _home_dylan_img_jpg.json
cache_file = img.replace("/", "_").replace(".", "_")
cache_file = img.replace("/", "_").replace("\\", "_").replace(".", "_")
cache_file = os.path.join(cache_dir, "schemes", cache_file + ".json")
if os.path.isfile(cache_file):

View File

@ -17,7 +17,7 @@ __version__ = "0.6.6"
HOME = os.getenv("HOME", os.getenv("USERPROFILE"))
CACHE_DIR = os.path.join(HOME, ".cache/wal/")
CACHE_DIR = os.path.join(HOME, ".cache", "wal")
MODULE_DIR = os.path.dirname(__file__)
COLOR_COUNT = 16
OS = platform.uname()[0]