Oops
This commit is contained in:
parent
f0f49cce18
commit
52fe1ff777
2 changed files with 6 additions and 3 deletions
|
@ -14,6 +14,9 @@
|
||||||
|
|
||||||
import importlib
|
import importlib
|
||||||
import importlib.util
|
import importlib.util
|
||||||
|
import sys
|
||||||
|
|
||||||
|
from pathlib import Path
|
||||||
|
|
||||||
from sshare.plugin.config import Flag
|
from sshare.plugin.config import Flag
|
||||||
from sshare.plugin.config import NoDefault
|
from sshare.plugin.config import NoDefault
|
||||||
|
@ -49,9 +52,9 @@ class PluginLoader:
|
||||||
]
|
]
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def at(logger=None, config=dict(), flags=dict(), *args):
|
def at(*args, logger=None, config=dict(), flags=dict()):
|
||||||
return [
|
return [
|
||||||
Plugin.external(plugin, logger, config, flags)
|
Plugin.external(Path(plugin), logger, config, flags)
|
||||||
for plugin
|
for plugin
|
||||||
in args
|
in args
|
||||||
]
|
]
|
||||||
|
|
|
@ -113,7 +113,7 @@ def main():
|
||||||
arg_parser.add_argument(
|
arg_parser.add_argument(
|
||||||
"plugins",
|
"plugins",
|
||||||
nargs="*",
|
nargs="*",
|
||||||
help="plugin(s) to be validated",
|
help="plugin(s) to be validate (Default: all external plugins)",
|
||||||
)
|
)
|
||||||
arguments = arg_parser.parse_args()
|
arguments = arg_parser.parse_args()
|
||||||
if arguments.dev:
|
if arguments.dev:
|
||||||
|
|
Loading…
Reference in a new issue