Is there any problem, if in a periodic script I have a "constant" variable and I redeclare it in every run?
#!/usr/bin/env python
PATH_PATTERN = '/home/%s/config.xml'
PATH = None
def periodic_execution(function):
    PATH = PATH_PATTERN % get_user()
    interval_in_sec = 1000
    threading.Timer(interval_in_sec,periodic_execution,[function]).start()
    function()
    # in function i use the PATH variable
def main():
    periodic_execution(tasks)
if __name__ == '__main__':
    main()
I know that constant not will be constant...
 
     
     
    