I want to be able to dynamically change the value of a variable of a Python program outside of the program from another Python program. I have this function:
def main():
PATH = 'path/to/file'
Is there a way to edit this variable from another Python program? The only way I can think of is sharing a text file between the two files, one inputs into it, one extracts from it.