Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Franck Pommereau
/
snakes
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Franck Pommereau
2023-04-26 15:33:27 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
1146ef70b035366f95532379574613ed82078c56
1146ef70
1 parent
4d24e268
fixed plugin loading twice
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
snakes/plugins/__init__.py
snakes/plugins/__init__.py
View file @
1146ef7
...
...
@@ -162,6 +162,8 @@ def plugin (base, depends=[], conflicts=[]) :
conf
=
set
(
conflicts
)
&
loaded
if
len
(
conf
)
>
0
:
raise
ValueError
(
"plugin conflict (
%
s)"
%
", "
.
join
(
conf
))
if
fun
.
__module__
in
loaded
:
return
module
objects
=
fun
(
module
)
if
type
(
objects
)
is
not
tuple
:
objects
=
(
objects
,)
...
...
Please
register
or
login
to post a comment