summaryrefslogtreecommitdiff
path: root/src/get_args.py
diff options
context:
space:
mode:
authorchqn <chandler@cock.li>2023-12-14 20:33:22 -0700
committerchqn <chandler@cock.li>2023-12-14 20:33:22 -0700
commit350bb4aa798c9c8939b4b7c91dbee9e08f73edc4 (patch)
treeffe6359be92477665fed441361024738ef81348f /src/get_args.py
parent2eaf90df29b101a55be46099417faadf86bd3eb6 (diff)
img path is relative now
Diffstat (limited to 'src/get_args.py')
-rw-r--r--src/get_args.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/get_args.py b/src/get_args.py
index c4e8ade..e38ee90 100644
--- a/src/get_args.py
+++ b/src/get_args.py
@@ -1,14 +1,14 @@
import user_interface
-
+import os
def get_args(args):
-
+
dmenu = False
nolock = False
if '-r' in args:
img_path = user_interface.pickRandomWallpaper()
else:
- img_path = args[1]
+ img_path = f"{os.getcwd()}/{args[1]}"
if '-dmenu' in args:
dmenu = True