Registry / devops / colcon-cd

colcon-cd

JSON →
library0.1.1pypypi✓ verified 86d ago

A shell function for colcon that allows changing the current working directory to the package base path. It is part of the colcon ecosystem and used in ROS 2 development. Current version is 0.1.1, released infrequently.

pip install colcon-cd
INSTALL
IMPORT
SIG · COLCON-CD
C
colcon-cd
devopspythonv0.1.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

colcon_cd
from colcon_cd import __version__
colcon-cd is a shell function, not a Python module; importing may not be intended.

colcon-cd provides a shell function; typical usage is via sourcing.

# colcon-cd is a shell function, not a Python library. # Source the shell completion or use it directly: # eval "$(colcon cd)"
Debug
Known issues
gotchacolcon-cd is a shell extension, not a Python module. Attempting to import it in Python will fail or be meaningless.
fix
Use as a shell command: source colcon_cd hook or eval '$(colcon cd)'
affects: all
gotchaRequires colcon-core to be installed and the shell hook to be sourced before use.
fix
Install colcon-core and ensure .bashrc or .zshrc sources colcon's shell completion.
affects: all
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'colcon_cd'
Trying to import colcon-cd as a Python module.
fix
colcon-cd is not a Python module; use it as a shell command instead.
bash: colcon: command not found
colcon not installed or not in PATH.
fix
Install colcon-core with pip install colcon-common-extensions.
Upgrade
Version history
0.1.1latest on PyPI · released Oct 21, 2019
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
colcon-cd — pip install colcon-cd · libregistry