How to avoid hardcoding package name in python?
#!/usr/bin/env python
PACKAGE_NAME = 'puddingPackage'
import roslib; roslib.load_manifest(PACKAGE_NAME)
:
:
Other than declaring in each .py
files like above, what is the official/recommended way to give the package name to roslib
that's mandatory in rospy
?
Might / Should not be often the case but in my team the pkg name gets changed esp. at its earlier stage where the usage and stack/pkg
structure isn't mature enough.
Thank you.