Compile py2exe from executable

I saw a similar question on this site but did not answer correctly for my requirements. I am fairly familiar with py2exe.

I would like to create a program (in python and py2exe) that I can distribute to my clients that would allow them to add their own data (not code, just numbers) and redistribute as a new / patched exe for further distribution (as one file so my code + data). I understand that this can be done with multiple files.

Is this conceptually possible if my clients don't install python? I guess I'm asking how to do the "bundlefiles" option?

Many thanks

+3


source to share


1 answer


I think it's possible. I'm not sure how py2exe works, but I know how pyinstaller does it, and since both do the same thing, it should work in a similar way.

Namely, the single file flag doesn't really create one file. This is similar to what it is for the end user, but when the user launches the application, it is unpacked and the files are stored physically somewhere. You can try editing some original file (like numbers.py or data.py) and repackaging it with changed data.



I know this is not the best explanation, you need to think further on your own. I am just showing you a possible path.

+1


source







All Articles