* Include the directory containing the script when trying to locate the config file.
authorUrban Wallasch <urban.wallasch@freenet.de>
Wed, 12 May 2021 20:41:48 +0000 (22:41 +0200)
committerUrban Wallasch <urban.wallasch@freenet.de>
Wed, 12 May 2021 20:41:48 +0000 (22:41 +0200)
ffpreview.py

index 629f40f49b683bc46e84495f9e8e0ba24bcd5618..28580bfe3f4bb37abd1da78f9f0e788c9dc36907 100755 (executable)
@@ -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: