Ideally I want file2.py to inherit the variables+value from file1.py.
When I import a module, I want access to the variables (by reference), not a copy.
Code:
# file1.py import file2 var1 = None def func1(): global var1 var1 = 'test' if __name__ == "__main__": func1() print