Fix FileNotFound error when trying to download search plugin when the working directory is not the directory of the program

This commit is contained in:
James Taylor
2020-02-06 22:17:58 -08:00
parent d86384c4ec
commit 6f28d959f0
2 changed files with 3 additions and 1 deletions

View File

@@ -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'}