Closed Brissouille closed 5 years ago
Python path is a possible solution
The best solution is to import like that: "from .toto import titi". I'm going to try this.
The previous solution works out of the Lagrange module but not in. Indeed my file hw_test.py imports Lagrange.aes_hw and in the aes_hw.py file, there is the imports .aes and .hw. So I put the test files out of the Lagrange module and they are not committed. The last point could be a problem in the future, but i close the issue.
How to import in Lagrange package without from Lagrange.module import class