How do you create a package so that the following reference will work?

Questions & AnswersCategory: PythonHow do you create a package so that the following reference will work?
Geek Boy Staff asked 2 years ago

How do you create a package so that the following reference will work?

p = myxml objparser.ObjParser()

a. This can not be done
b. Create a __init__.py and objparser.py inside the myxml directory
c. Create a __init__.py in the home dir
d. Declare the ObjParser package in myxml.py
e. Create a ObjParser.py directory inside the myxml directory