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:
parent
9d0725b2d4
commit
8f175484f7
@ -8831,6 +8831,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
|||||||
for plugin_dir in plugin_dirs:
|
for plugin_dir in plugin_dirs:
|
||||||
if not os.path.isdir(plugin_dir):
|
if not os.path.isdir(plugin_dir):
|
||||||
continue
|
continue
|
||||||
|
sys.path.append(plugin_dir)
|
||||||
for extfile in os.listdir(plugin_dir):
|
for extfile in os.listdir(plugin_dir):
|
||||||
if not extfile.endswith('.py'):
|
if not extfile.endswith('.py'):
|
||||||
continue
|
continue
|
||||||
|
Loading…
x
Reference in New Issue
Block a user