summaryrefslogtreecommitdiff
path: root/pywal/util.py
diff options
context:
space:
mode:
authordylan araps <dylan.araps@gmail.com>2017-07-20 13:40:31 +1000
committerdylan araps <dylan.araps@gmail.com>2017-07-20 13:40:31 +1000
commit88bdd9ab013bad324e1f3f4ad8516fd6d55ca312 (patch)
treee41af644ec255deecda3156f2581182d312e7662 /pywal/util.py
parent8917eef29e0d9279a74c35e0a59b29c9a89fbbc7 (diff)
api: Use wal file in __main__.py
Diffstat (limited to 'pywal/util.py')
-rw-r--r--pywal/util.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/pywal/util.py b/pywal/util.py
index 6c5b420..deab13c 100644
--- a/pywal/util.py
+++ b/pywal/util.py
@@ -98,3 +98,8 @@ def disown(*cmd):
stdout=subprocess.DEVNULL,
stderr=subprocess.DEVNULL,
preexec_fn=os.setpgrp)
+
+
+def str_to_path(str_path):
+ """Convert a string to a Path type."""
+ return pathlib.Path(str_path)