Robot Framework and __init__.py file in python module directories

534 views
Skip to first unread message

Yimbo

unread,
Apr 10, 2015, 5:45:08 AM4/10/15
to robotframe...@googlegroups.com
Hello,

I have a folder structure that looks like this:
- helpers
- keywords
- runners
- suites

Each folder except suites contains python modules and each folder has it's own __init__.py which imports the path of the other folders.
When running my script from python or command line it successfully finds the modules from other directories but when I try to run it from RIDE or from command line with pybot it can't find the other modules.
I'm curious about how RobotFramework uses the __init__.py files in the folders and if there is an alternative to this problem.
Previously I used pythonpath to find the modules and it worked fine, but using this structure on multiple branches on my project will fill up pythonpath so I'm looking for an alternative.

Thanks in advance.

Yimbo

unread,
Apr 10, 2015, 6:51:15 AM4/10/15
to robotframe...@googlegroups.com
I found the issue. The given path was wrong.
Reply all
Reply to author
Forward
0 new messages