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

Use relative imports #13

Open
htgoebel opened this issue Feb 28, 2021 · 1 comment
Open

Use relative imports #13

htgoebel opened this issue Feb 28, 2021 · 1 comment

Comments

@htgoebel
Copy link

htgoebel commented Feb 28, 2021

https://github.com/coopengo/tryton-training/wiki/5.0-step1 reads:

Open the init.py file and write down the following:

import library

For clarity and expressiveness, this should become a relative import. Current officail tryton modules use relatvice imports, too, see e.g. https://hg.tryton.org/modules/commission/file/tip/__init__.py#l5

Anyhow, I wonder how this does work at all, as in Python 3 this is an absolute import and will import a completly different module.

@notzippy
Copy link

Duplicate of #8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants