From: Urban Wallasch Date: Wed, 12 May 2021 20:41:48 +0000 (+0200) Subject: * Include the directory containing the script when trying to locate the config file. X-Git-Tag: v0.3~76 X-Git-Url: https://git.packet-gain.de/?a=commitdiff_plain;h=bd92137a58e5ad78bbd88336a718b1e365bf55db;p=ffpreview.git * Include the directory containing the script when trying to locate the config file. --- 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: