python directory import issue on ROS
hi all, My ros_workspace directory is like this:
ros_workspace --> src--> package1(src, msg, script((folder1-->abc1.py), ( folder2-->abc2.py))):
I want import "abc2.py" from "abc1.py", how should i write ? I tried "import package1.script.folder2.abc2" from "abc1.py", it is so long for the path, also I use catkin_make under ros_workspace build, the error show "ImportError: No module named scripts.folder2" How should i import the abc2.py from abc1.py ? please don't say "put abc1.py and abc2.py together", this is just a example, I have too many python files, so i need category them to several folder. thanks