Skip to content

Commit

Permalink
Importer
Browse files Browse the repository at this point in the history
  • Loading branch information
mkorpela committed Jan 20, 2024
1 parent d03b855 commit 6db1d6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pabot/pabotlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
from robot.api import logger
from robot.libraries.BuiltIn import BuiltIn
from robot.libraries.Remote import Remote
from robot.running import TestLibrary
from robot.utils.importer import Importer

from .robotremoteserver import RobotRemoteServer

Expand Down Expand Up @@ -157,7 +157,7 @@ def add_value_to_set(self, name, content):
def import_shared_library(self, name, args=None): # type: (str, Iterable[Any]|None) -> int
if name in self._remote_libraries:
return self._remote_libraries[name][0]
imported = TestLibrary(name, args=args)
imported = Importer().import_class_or_module(name_or_path=name, instantiate_with_args=args)
server = RobotRemoteServer(
imported.get_instance(), port=0, serve=False, allow_stop=True
)
Expand Down

0 comments on commit 6db1d6a

Please sign in to comment.