So how to call a function from another file but use a variable from the current one? I think it's very simple, but I can't get the desired effect. I keep getting an error that there is no such variable, even if I write 'global settings' Here is a sample code.
from modules.module import *
settings = "Hello world"
displayText()
input()
FIle 2
def displayText():
print(settings)