From 350bb4aa798c9c8939b4b7c91dbee9e08f73edc4 Mon Sep 17 00:00:00 2001 From: chqn Date: Thu, 14 Dec 2023 20:33:22 -0700 Subject: img path is relative now --- src/get_args.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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 -- cgit v1.2.3