|
|
└── a
| ├── __init__.py
| ├── a.py
└── b
├─__init__.py
└── b.py
I want to use method from a.py in b.py
|
|
└── a
| ├── __init__.py
| ├── a.py
└── b
├─__init__.py
└── b.py
I want to use method from a.py in b.py
Suppose you have a method myMethod() in module a.py and you want to import this in b.py then you can first import module a.py in b.py by typing "import a" in b.py header then call the method using import name as a.myMethod() wherever required.