I am trying to find a way to call a function in the __main__ file from a file that i have imported at the top. I do not want to have to add in a import for the __main__ file into the file i am importing into the __main__ file since i want this to work for and file that imports it. Here's an example
main file:
import importedFile
def Function():
print("test")
and what I want the imported file to do, this code does not work but it explains what I want to do:
__main__.Function()