pulseenergy / vacation

Handy little app to help you keep track of your accumulated and remaining vacation days.
GNU General Public License v2.0
5 stars 2 forks source link

Vacation gives `import error` when run as a package #8

Open supermitch opened 9 years ago

supermitch commented 9 years ago

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