From bd92137a58e5ad78bbd88336a718b1e365bf55db Mon Sep 17 00:00:00 2001 From: Urban Wallasch Date: Wed, 12 May 2021 22:41:48 +0200 Subject: [PATCH] * Include the directory containing the script when trying to locate the config file. --- ffpreview.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ffpreview.py b/ffpreview.py index 629f40f..28580bf 100755 --- a/ffpreview.py +++ b/ffpreview.py @@ -170,7 +170,8 @@ def configure(): defconfpath = os.path.join( # try to determine user config file os.environ.get('APPDATA') or os.environ.get('XDG_CONFIG_HOME') or - os.path.join(os.environ['HOME'], '.config'), + os.path.join(os.environ['HOME'], '.config') or + sys.path[0], cfg['conffile'] ) if args.config: -- 2.30.2