You are right about fixed state. What PyInstaller remembers is the name of the file. So if you paste the same file with different content(some .txt maybe) it will work with it just fine because it thinks it is the same file.
That would be amazing and a super easy solve. Problem: I cannot find the config.py in the folder that was created by PyInstaller. Actually I can't find any of the modules I import. Are they merged into the .exe file?
It does not work. When I manually add the config.py, the file is added - yes. But when I change variables in the file, nothing changes in the program. The .exe does not load data from the config.py
I changed my config file to .json and now it works. Even with adding the file manually, it does NOT work when the file is .py (the file was in the folder, but changing settings did not reflect in the script).
Can you please suggest on how to do this? I have converted the python codes to exe using pyinstaller. I kept the input python file wthout converting to .exe so that the main exe can read from it. But when i change the values in the input python file I have to again use pyinstaller and do the convertion of main python file.
Some comments have been hidden by the post's author - find out more
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
You are right about fixed state. What PyInstaller remembers is the name of the file. So if you paste the same file with different content(some .txt maybe) it will work with it just fine because it thinks it is the same file.
That would be amazing and a super easy solve. Problem: I cannot find the config.py in the folder that was created by PyInstaller. Actually I can't find any of the modules I import. Are they merged into the .exe file?
You should add files manually sometimes. Try copying config there. It should work.
It does not work. When I manually add the config.py, the file is added - yes. But when I change variables in the file, nothing changes in the program. The .exe does not load data from the config.py
Make sure you added the fie to Auto PY to EXE additional files menu for it to be compilated with .exe.
I changed my config file to .json and now it works. Even with adding the file manually, it does NOT work when the file is .py (the file was in the folder, but changing settings did not reflect in the script).
Can you please suggest on how to do this? I have converted the python codes to exe using pyinstaller. I kept the input python file wthout converting to .exe so that the main exe can read from it. But when i change the values in the input python file I have to again use pyinstaller and do the convertion of main python file.