Skip to content
Snippets Groups Projects
Commit 56aa36ad authored by mehtank's avatar mehtank
Browse files

Fix globbing

parent 69d4168c
No related merge requests found
...@@ -6,7 +6,7 @@ Library for making ??? designs using roco ...@@ -6,7 +6,7 @@ Library for making ??? designs using roco
__author__ = 'UCLA LEMUR' __author__ = 'UCLA LEMUR'
__credits__ = 'The Laboratory for Embedded Machines and Ubiquitous Robots' __credits__ = 'The Laboratory for Embedded Machines and Ubiquitous Robots'
__plugin_name__ = 'boats' __plugin_name__ = 'template'
__description__ = 'Robot Compiler: design plugin for ' + __plugin_name__ __description__ = 'Robot Compiler: design plugin for ' + __plugin_name__
__url__ = 'https://git.uclalemur.com/roco/roco-template' __url__ = 'https://git.uclalemur.com/roco/roco-template'
from ._version import __version__ from ._version import __version__
......
...@@ -30,8 +30,7 @@ def get_version_and_cmdclass(): ...@@ -30,8 +30,7 @@ def get_version_and_cmdclass():
def mkentries(path): def mkentries(path):
key = f"rocolib.{path}" key = f"rocolib.{path}"
pyComponents = [ os.path.basename(f)[:-3] for f in glob(f"./{path}/[!_]*.py")] pyComponents = [ os.path.basename(f)[:-3] for f in glob(f"{pkg_path}/{path}/[!_]*.py")]
# yamlComponents = [ os.path.basename(f)[:-5] for f in glob(f"./{path}/*.yaml")]
eps = [] eps = []
for c in pyComponents: for c in pyComponents:
eps.append(f"{c} = {path}.{c}.{c}") eps.append(f"{c} = {path}.{c}.{c}")
...@@ -49,7 +48,7 @@ for path in "library components composables ports".split(): ...@@ -49,7 +48,7 @@ for path in "library components composables ports".split():
entry_points.update(mkentries(path)) entry_points.update(mkentries(path))
setup( setup(
name='roco-' + plugin_name , name='roco_' + plugin_name ,
version=version, version=version,
cmdclass=cmdclass, cmdclass=cmdclass,
description=get_metadata("description"), description=get_metadata("description"),
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment