workspace global python module - where to put?
I'd like to have a python module globally available across all nodes in a catkin workspace. It contains functions that I don't want to repeat in every module I need them. They are pure Python modules. I'd like to do something like this:
#!/usr/bin/env python
# mymodule.py
def myFunction(a):
# just an example
something = a * 2
return something
# End of mymodule.py
And in my ROS Python scripts I'd like to be able to import that module like...
#!/usr/bin/env python
import roslib...
import mymodule
def someotherfunc():
b = mymodule.myFunction(10)
if __name__ ==...
It shall be available in my whole catkin workspace. Where do I have to put it?
Thanks a lot!