I have a large project that has a large 'config.py' file and is turned into an executable with pyinstaller. Is it possible to compile the whole project, but leave / re-load / import this file at run time, and how?
(I could move part of the contents to a json format, and alter the file's logic, then load the json file, but do not want to plus, its a big file that everyone has his own copy already...)
a small part of what is in 'config.py' is:
import getpass
username = getpass.getuser()
data_files_dir = '/tmp/data'
bindings = 'UC'
if username.lower()=='nick':
data_files_dir = '/tmp/data'
....
....
The only relevant question I found is this one, but it seems to be asking for something much more extensive, plus the answer ('You are missing the point. Your script supposes to be an end product.') definitely does not fit my case...