summaryrefslogtreecommitdiff
path: root/pywal/reload.py
diff options
context:
space:
mode:
authorDylan Araps <dylan.araps@gmail.com>2017-08-09 11:22:51 +1000
committerDylan Araps <dylan.araps@gmail.com>2017-08-09 11:22:51 +1000
commitd98be353ecd5deff97804312ec798fb227adfbc1 (patch)
tree84491474f6e0648dea3a7689f0626a4809492007 /pywal/reload.py
parentd9a0865277dfdfe7951b9b429d5af1f2be27d66c (diff)
general: Make pywal compatible with python 3.5
Diffstat (limited to 'pywal/reload.py')
-rw-r--r--pywal/reload.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pywal/reload.py b/pywal/reload.py
index f284966..11d048f 100644
--- a/pywal/reload.py
+++ b/pywal/reload.py
@@ -15,7 +15,7 @@ def xrdb(xrdb_file=None):
xrdb_file = xrdb_file or CACHE_DIR / "colors.Xresources"
if shutil.which("xrdb"):
- subprocess.Popen(["xrdb", "-merge", xrdb_file],
+ subprocess.Popen(["xrdb", "-merge", str(xrdb_file)],
stdout=subprocess.DEVNULL,
stderr=subprocess.DEVNULL).wait()
@@ -27,13 +27,13 @@ def gtk():
if theme_path.is_dir():
if gtk2_file.is_file():
- shutil.copy(gtk2_file, theme_path / "gtk-2.0")
+ shutil.copy(str(gtk2_file), str(theme_path / "gtk-2.0"))
# Here we call a Python 2 script to reload the GTK themes.
# This is done because the Python 3 GTK/Gdk libraries don't
# provide a way of doing this.
if shutil.which("python2"):
- util.disown(["python2", MODULE_DIR / "scripts" / "gtk_reload.py"])
+ util.disown(["python2", str(MODULE_DIR / "scripts" / "gtk_reload.py")])
else:
print("warning: GTK2 reload support requires Python 2.")