ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Import question

asked 2015-04-09 12:16:16 -0600

Leontes gravatar image

Hello, Im new in ROS and Im having a problem importing a .py file from my scripts folder to another .py in the nodes folder of the package.

I know how to import anything in the src folder, but I cant find information about how to do what I wanna do.

Maybe this is a silly question, but I'll apreciate any help. Thank you!!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2015-04-11 00:43:54 -0600

clynamen gravatar image

you'll have to add the scripts folder in the PYTHON_PATH. But it's probably better to change the layout of your project (move the script inside src?)

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2015-04-09 12:16:16 -0600

Seen: 570 times

Last updated: Apr 11 '15