Brissouille / Lagrange

Cryptanalysis on differents algorithms with z3 solver sat
GNU General Public License v3.0
17 stars 1 forks source link

Problems with imports. #1

Closed Brissouille closed 5 years ago

Brissouille commented 5 years ago

How to import in Lagrange package without from Lagrange.module import class

Brissouille commented 5 years ago

Python path is a possible solution

Brissouille commented 5 years ago

The best solution is to import like that: "from .toto import titi". I'm going to try this.

Brissouille commented 5 years ago

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.