From 8f175484f78230aa3a281722b9886ae9a49392a1 Mon Sep 17 00:00:00 2001 From: Ludwig Nussel Date: Tue, 14 Mar 2017 13:39:04 +0100 Subject: [PATCH] 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. --- osc/commandline.py | 1 + 1 file changed, 1 insertion(+) diff --git a/osc/commandline.py b/osc/commandline.py index 9f49e038..a7369538 100644 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -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