projects
/
ffpreview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a309a30
)
* Include the directory containing the script when trying to locate the config file.
author
Urban Wallasch
<urban.wallasch@freenet.de>
Wed, 12 May 2021 20:41:48 +0000
(22:41 +0200)
committer
Urban Wallasch
<urban.wallasch@freenet.de>
Wed, 12 May 2021 20:41:48 +0000
(22:41 +0200)
ffpreview.py
patch
|
blob
|
history
diff --git
a/ffpreview.py
b/ffpreview.py
index 629f40f49b683bc46e84495f9e8e0ba24bcd5618..28580bfe3f4bb37abd1da78f9f0e788c9dc36907 100755
(executable)
--- 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: