Message178913
Instead of giving the error message " Attempted relative import in non-package", simply process the line!
from . import Example
whether or not the file is __main__, it should be able to go up one directory, if possible, and try to import Example.py. It makes no sense that this cannot be done. |
|
Date |
User |
Action |
Args |
2013-01-03 05:52:11 | Fixpythonbugs | set | recipients:
+ Fixpythonbugs |
2013-01-03 05:52:11 | Fixpythonbugs | set | messageid: <1357192331.61.0.693606949117.issue16846@psf.upfronthosting.co.za> |
2013-01-03 05:52:11 | Fixpythonbugs | link | issue16846 messages |
2013-01-03 05:52:10 | Fixpythonbugs | create | |
|