I have the following problem. I want to edit the variables of the class from the module I just imported. I can only find the reverse way. To edit module from main. I want the following:
main.py:
class A:
MyVar = 7
import a
print(MyVar) #I want to get 4
a.py:
A.MyVar = 4
When executing main.py I get 'NameError: name A is not defined'.