mirror of
https://github.com/openSUSE/osc.git
synced 2025-02-28 05:02:11 +01:00
Merge branch 'path' of https://github.com/lnussel/osc
Add plugin directories to sys.path, because an osc plugin could rely on additional packages or modules that are shipped with the plugin itself.
This commit is contained in:
commit
6184c7ee78
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user