I think I figured it out, although no scientifically.
I did from from . import lexer and version 0.4.7 (pip installed) seems to work fine in both 2.7 and 3.4. To run the program directly, e.g. while developing, don't run it as a script, but run it as a package: python -m vacation.vacation. Now you can use relative imports.
Would appreciate if you could test and confirm it's working. @jollyra
I think I figured it out, although no scientifically.
I did from
from . import lexer
and version 0.4.7 (pip installed) seems to work fine in both 2.7 and 3.4. To run the program directly, e.g. while developing, don't run it as a script, but run it as a package:python -m vacation.vacation
. Now you can use relative imports.Would appreciate if you could test and confirm it's working. @jollyra