Status: Accepted
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 1139 by janne.t.harko...@gmail.com: Relative imports found from
PYTHONPATH do not work
http://code.google.com/p/robotframework/issues/detail?id=1139
having following files
test.txt
lib/--
| Lib.py
and import like this in test.txt:
*** Settings ***
Lib.py
executing robot like this:
import sys
import robot
sys.path.append('lib')
robot.run('test.txt')
fails with following error message:
Error in file '/Users/jth/code/robotframework/tmp/test.txt' in
table 'Settings': Importing test library 'lib/Lib.py' failed: ImportError:
Import by filename is not supported.
Same thing happens if a variable file is imported the same way