Project skeleton

I get an import error with the name directory when I run the test file but when I move it (the name directory) to the tests directory, it works. What do you please think about this?

Hello @Aaron.

Do you have a

__init__.py

in your NAME directory?
See Common Students Questions at the end of this exercise. It looks like this is your problem.

Yes, also let me know what OS you’re on and Python version as you can also set the PYTHONPATH.

Yer, I do have the inti.py.

I use windows 10 pro and python 3.8

You need to update your PYTHONPATH in powershell like this:

$env:PYTHONPATH="."

Let me know if that works.

A free service run by Zed A. Shaw for learncodethehardway.org.