mirror of
https://github.com/dylanaraps/pywal.git
synced 2024-11-25 17:33:09 +01:00
general: Fix linux specific path
This commit is contained in:
parent
3c7b0fd840
commit
8d0e3d4ed4
@ -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):
|
||||
|
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user