1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-02-25 03:32:15 +01:00

Add plugin directory to search path

Some osc plugins ship with extra modules that are not globally installed
as python modules. So expand search path.
This commit is contained in:
Ludwig Nussel 2017-03-14 13:39:04 +01:00
parent 9d0725b2d4
commit 8f175484f7

View File

@ -8831,6 +8831,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
for plugin_dir in plugin_dirs:
if not os.path.isdir(plugin_dir):
continue
sys.path.append(plugin_dir)
for extfile in os.listdir(plugin_dir):
if not extfile.endswith('.py'):
continue