0

The file structure is like this

project
--idl
    --__init__.py
    --a.thrift
    --a_thrift.pyi
    --b.py
     
--main.py

in main.py, there is sth like

from idl.a_thrift import xxx

when running python main.py, it will complain about

ModuleNotFoundError: No module named idl.a_thrift

However, main.py can import the module from idl.b

I have set PYTHONPATH to the project directory. Any idea what's wrong with it?

shakalaka
  • 151
  • 1
  • 7

0 Answers0