I have a script that reads a file and then completes tests based on that file however I am running into a problem because the file reloads after one hour and I cannot get the script to re-read the file after or at that point in time.
So:
- GETS NEW FILE TO READ
- Reads file
- performs tests on file
- GET NEW FILE TO READ (with same name - but that can change if it is part of a solution)
- Reads new file
- perform same tests on new file
Can anyone suggest a way to get Python to re-read the file?