wala/ML

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

開放

#211 建立於 2024年7月22日

 (0 則留言) (0 個反應) (0 位負責人)Java (17 個分叉)auto 404
PYTHONPATHbughelp wanted

倉庫指標

星標
 (27 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

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.

貢獻者指南