Skip to content

Commit

Permalink
remove obsolete argument mod_prefix (#41)
Browse files Browse the repository at this point in the history
Signed-off-by: Dirk Thomas <dirk-thomas@users.noreply.github.com>
  • Loading branch information
dirk-thomas committed Apr 16, 2019
1 parent e5ed4e8 commit e905f75
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def __init__(self, pkg_name):
self.pkg_name = pkg_name


def import_type_support(pkg_name, mod_prefix=None):
def import_type_support(pkg_name):
"""
Import the rosidl_typesupport_c module of a package.
Expand All @@ -33,12 +33,9 @@ def import_type_support(pkg_name, mod_prefix=None):
be converted to and from message structures used by the rmw implementation.
:param pkg_name str: name of the package
:param mod_prefix str: optional typesupport module prefix
:returns: the typesupport Python module for the specified package
"""
if not mod_prefix:
mod_prefix = pkg_name
module_name = '.{}_s__rosidl_typesupport_c'.format(mod_prefix)
module_name = '.{}_s__rosidl_typesupport_c'.format(pkg_name)
try:
return importlib.import_module(module_name, package=pkg_name)
except ImportError:
Expand Down

0 comments on commit e905f75

Please sign in to comment.