Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Absolute imports not working any longer #12

Open
OlivierBondu opened this issue May 19, 2015 · 0 comments
Open

Absolute imports not working any longer #12

OlivierBondu opened this issue May 19, 2015 · 0 comments
Labels
Milestone

Comments

@OlivierBondu
Copy link
Member

e.g.

theUserConf = __import__(os.path.splitext(options.conf)[0])

most likely coming from the switch to python 2.6 to 2.7 : https://docs.python.org/3/whatsnew/2.7.html
"The import statement will no longer try an absolute import if a relative import (e.g. from .os import sep) fails. This fixes a bug, but could possibly break certain import statements that were only working by accident. (Fixed by Meador Inge; issue 7902.)"

my workaround for the moment is to add "." to the PYTHONPATH

@blinkseb blinkseb added this to the First release milestone Jun 9, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants