aboutsummaryrefslogtreecommitdiffstats
path: root/settings.py
diff options
context:
space:
mode:
authorJames Taylor <user234683@users.noreply.github.com>2020-02-06 22:17:58 -0800
committerJames Taylor <user234683@users.noreply.github.com>2020-02-06 22:17:58 -0800
commit6f28d959f00e517ba5c36e486041f7fdaa329e6d (patch)
tree6082bf55f667acc4aada88c2c69919f26c9ef4e6 /settings.py
parentd86384c4ec7bdd54b5a8ca5c4860f3e54bfdbd57 (diff)
downloadyt-local-6f28d959f00e517ba5c36e486041f7fdaa329e6d.tar.lz
yt-local-6f28d959f00e517ba5c36e486041f7fdaa329e6d.tar.xz
yt-local-6f28d959f00e517ba5c36e486041f7fdaa329e6d.zip
Fix FileNotFound error when trying to download search plugin when the working directory is not the directory of the program
Diffstat (limited to 'settings.py')
-rw-r--r--settings.py1
1 files changed, 1 insertions, 0 deletions
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'}