From 6f28d959f00e517ba5c36e486041f7fdaa329e6d Mon Sep 17 00:00:00 2001 From: James Taylor Date: Thu, 6 Feb 2020 22:17:58 -0800 Subject: Fix FileNotFound error when trying to download search plugin when the working directory is not the directory of the program --- settings.py | 1 + 1 file changed, 1 insertion(+) (limited to 'settings.py') diff --git a/settings.py b/settings.py index bd6710c..5407922 100644 --- a/settings.py +++ b/settings.py @@ -147,6 +147,7 @@ For security reasons, enabling this is not recommended.''', }), ]) +program_directory = os.path.dirname(os.path.realpath(__file__)) acceptable_targets = settings_info.keys() | {'enable_comments', 'enable_related_videos'} -- cgit v1.2.3