Ask Your Question
0

Import question

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

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 -0500

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

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

Seen: 38 times

Last updated: Apr 11 '15