wala/ML
Intermodule importing using `import` not working (`from ... import ...` works fine)
开放
#211 创建于 2024年7月22日
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.