myMain.py
/myPackage
file1.py
file2.py
confFile.cfg
myMain.py imports file1 and file2 etc. and it reads the confFile. what would be the best way for the conf options to be visible in the whole package? i.e. for file1 and file2 to be able to read the conf options. I do not want to pass a lot of variables around in functions.
What I have right now is a confFile.py which i import into the files and read the variables defined from it as they are required.
I am new to python and any suggestions are appreciated.
/Zaar