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.

贡献者指南