Unable to Import a Module in Python

advertisements

Why am I having an 'undefined bdir module' error, here is my directory,

a.py

bdir->bdir>module.py

in a.py

   from bdir import *


Put an __init__.py file (even empty) in your bdir folder.