orocos-toolchain / ocl

Orocos Component Library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Deployer import function ambiguity

meyerj opened this issue · comments

The deployer's import() operation fails to load a package if a subdirectory with the same name exists in the current working directory.

Example

$ mkdir ocl
$ deployer
Real-time memory: 517888 bytes free of 524288 allocated.
0.027 [ ERROR  ][ComponentLoader::importInstalledPackage(package, path_list)] Failed to import components, types or plugins from package or directory 'ocl' found in:
0.027 [ ERROR  ][ComponentLoader::importInstalledPackage(package, path_list)] ocl:ocl/gnulinux
   Switched to : Deployer

  This console reader allows you to browse and manipulate TaskContexts.
  You can type in an operation, expression, create or change variables.
  (type 'help' for instructions and 'ls' for context info)

    TAB completion and HISTORY is available ('bash' like)

    Use 'Ctrl-D' or type 'quit' to exit this program.

Deployer [S]> 

Options

  • Only interpret the argument as a filename if it contains at least one /. A package from a local directory would have to be imported with import("./<pkg>").
  • For non-absolute paths first try to load a package with the given name, and only fall back to relative directories if not found.