I have a python project that looks like this:
appname/
__init__.py
cli.py
compute_signature.py
utils.py
test/
__init__.py
test_compute_signature.py
How should I write my imports?
Currently, in cli.py
I have
from compute_signature import # stuff
from utils import # stuff
And when I run python cli.py
it imports correctly.
However, when I run pylint cli.py
, it says it's unable to import these modules.
If I change the imports to:
from hex_configuration.compute_signature import # stuff
from hex_configuration.utils import # stuff
then pylint succeeds, but actually running the script fails.
What is the correct way to import these files?