I am a beginner in python. I just installed a external packge in python 2.7 with setup.py. so when i type help(package1) i can see its help and installed
But i am not able to use the functions in that package..can some one help me with it. Following are my questions
1. This is how my directory look like packag1>A B C D _init.py
so my init.py looks like
- Code: Select all
__all__=["A", "B", "C", "D"]
now when i go in directort A , I have three files
__init__.py reflection.py timedepthconv.py
relflection.py has many functions one of them is def oa(a,b,c,d,e)...and in __init__.py i can there is import oa with other functions..
Now my question
1.What is __init__.py file
2.How can i use function oa...
I tried using import Package1
oa(1,2,3,4,5) but it says oa is not defined...I already installed the package in python then why its not recognzing the function