I have hit a problem with this approach, can you give me any pointers on how to resolve this. Scenario is -
I have prog1.py, prog2.py, prog3.py, each imports
constants.py #which defines constants
classes.py #which defines classes, also imports constants
The problem is that I have a debug log file for each main program, this is written to from both the main program and also the classes. I want a different log file for each main program, so that is the place to define it, but then classes.py errors because the log file is not defined. Is there a way to overcome this?