Search code examples
pythonexefinalproduction

Can I write python onto a disk


So, I have a game that I made with Ursina, and I have packaged it up into a standalone exe file, with pyinstaller, and that all works. My question is, is there a way that I can write this onto a disk(by disk I mean like a CD/xbox game disk, not a part of the computer), that I can run on another computer, and my computer does have the ability to read and write on disks. Just curious, and I still have the original code, so I'm open to modifications. Thanks in advance!


Solution

  • Of course you can. It doesn't matter, what kind of storage you use to carry the python program on (or any other executable).

    Just check if your code doesn't need to write any files somewhere in optical drive (it's read-only storage).

    Or, even better, just copy your program from optical drive to an other computer HDD before running.