Skip to content

Commit

Permalink
read config files from PyInstaller exe directory (closes #682)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikf committed Apr 8, 2020
1 parent 6143050 commit 300264f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion gallery_dl/config.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- 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
# it under the terms of the GNU General Public License version 2 as
Expand Down Expand Up @@ -35,6 +35,14 @@
]


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

Expand Down

0 comments on commit 300264f

Please sign in to comment.