wala/ML

Intermodule importing using `import` not working (`from ... import ...` works fine)

Aperta

#211 aperta il 22 lug 2024

 (0 commenti) (0 reazioni) (0 assegnatari)Java (17 fork)auto 404
PYTHONPATHbughelp wanted

Metriche repository

Star
 (27 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

Importing a module from within the same directory works fine. Importing a module from another directory using PYTHONPATH also (mostly) works. But, if a module (with PYTHONPATH) imports another module from the same package (directory) using the import syntax, that doesn't seem to work.

Regression

Using the from X import Y syntax works fine.

Guida contributor