read config files from PyInstaller exe directory (closes #682)
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
# Copyright 2015-2019 Mike Fährmann
|
# Copyright 2015-2020 Mike Fährmann
|
||||||
#
|
#
|
||||||
# This program is free software; you can redistribute it and/or modify
|
# This program is free software; you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU General Public License version 2 as
|
# it under the terms of the GNU General Public License version 2 as
|
||||||
@@ -35,6 +35,14 @@ else:
|
|||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
if getattr(sys, "frozen", False):
|
||||||
|
# look for config file in PyInstaller executable directory (#682)
|
||||||
|
_default_configs.append(os.path.join(
|
||||||
|
os.path.dirname(sys.executable),
|
||||||
|
"gallery-dl.conf",
|
||||||
|
))
|
||||||
|
|
||||||
|
|
||||||
# --------------------------------------------------------------------
|
# --------------------------------------------------------------------
|
||||||
# public interface
|
# public interface
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user