Skip to content
Extraits de code Groupes Projets
Valider 1e50c8e3 rédigé par François De Keersmaeker's avatar François De Keersmaeker
Parcourir les fichiers

Updated importlib statement

parent 2afd4942
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -48,7 +48,7 @@ class Protocol: ...@@ -48,7 +48,7 @@ class Protocol:
:param protocol_data: Dictionary containing the protocol data. :param protocol_data: Dictionary containing the protocol data.
:param device: Dictionary containing the device metadata. :param device: Dictionary containing the device metadata.
""" """
module = importlib.import_module(f".{protocol_name}", package="protocols") module = importlib.import_module(f"{protocol_name}")
cls = getattr(module, protocol_name) cls = getattr(module, protocol_name)
return cls(protocol_data, device) return cls(protocol_data, device)
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter