here's a picture of my directory structure:
parts.py
machine/
__init__.py
parts.py
I have a directory (a package) called machine
in it there is __init__.py and parts.py
at the same level as machine, there is a file named parts.py
in parts.py, the code looks like this:
#parts.py
class Parts(object):
pass
in machine.parts the code looks like this
#machine.parts
from parts import Parts
class MachineParts(Parts):
pass
When I try to import machine.parts, I get an import error. I don't want to change my directory structure. How should I fix this and retain good PEP8 style?