From 52fe1ff777dfa04d1f8376f77ffe334eb7d99154 Mon Sep 17 00:00:00 2001 From: Gnarwhal Date: Sat, 14 Sep 2024 18:14:28 +0000 Subject: [PATCH] Oops --- src/sshare/plugin/plugin.py | 7 +++++-- src/sshare/validator.py | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/sshare/plugin/plugin.py b/src/sshare/plugin/plugin.py index 3d75c6b..558f2c2 100644 --- a/src/sshare/plugin/plugin.py +++ b/src/sshare/plugin/plugin.py @@ -14,6 +14,9 @@ import importlib import importlib.util +import sys + +from pathlib import Path from sshare.plugin.config import Flag from sshare.plugin.config import NoDefault @@ -49,9 +52,9 @@ class PluginLoader: ] @staticmethod - def at(logger=None, config=dict(), flags=dict(), *args): + def at(*args, logger=None, config=dict(), flags=dict()): return [ - Plugin.external(plugin, logger, config, flags) + Plugin.external(Path(plugin), logger, config, flags) for plugin in args ] diff --git a/src/sshare/validator.py b/src/sshare/validator.py index f4e21fd..64ba589 100644 --- a/src/sshare/validator.py +++ b/src/sshare/validator.py @@ -113,7 +113,7 @@ def main(): arg_parser.add_argument( "plugins", nargs="*", - help="plugin(s) to be validated", + help="plugin(s) to be validate (Default: all external plugins)", ) arguments = arg_parser.parse_args() if arguments.dev: