Как правильно вызвать программный скрипт *.py из Python, сделав доступной переменную из родительского элемента?
Parent.py
class cParent:
test = "test"
oParent = cParent()
import Child
Child.py
print(oParent.test) # this line fails presumably because oParent is out of scope