mirror of
https://github.com/dylanaraps/pywal.git
synced 2024-11-29 11:24:03 +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):
|
color_count=COLOR_COUNT, notify=False):
|
||||||
"""Get the colorscheme."""
|
"""Get the colorscheme."""
|
||||||
# _home_dylan_img_jpg.json
|
# _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")
|
cache_file = os.path.join(cache_dir, "schemes", cache_file + ".json")
|
||||||
|
|
||||||
if os.path.isfile(cache_file):
|
if os.path.isfile(cache_file):
|
||||||
|
@ -17,7 +17,7 @@ __version__ = "0.6.6"
|
|||||||
|
|
||||||
|
|
||||||
HOME = os.getenv("HOME", os.getenv("USERPROFILE"))
|
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__)
|
MODULE_DIR = os.path.dirname(__file__)
|
||||||
COLOR_COUNT = 16
|
COLOR_COUNT = 16
|
||||||
OS = platform.uname()[0]
|
OS = platform.uname()[0]
|
||||||
|
Loading…
Reference in New Issue
Block a user