making USB-portable windows applications?
Well my laptop died today, so now I'm forced to go back to jumping from PC to PC to do my work, so I'm wondering is it at all possible to make an installation of python, IDLE and pygame on a USB stick so I'm able to run all 3 of those from any windows PC, even when I'm stuck into a limited user account?
You should be able to. When you are installing the programs just set the install folder to "E:\pygame\" instead of "C:\program files\pygame\" Just make sure "e:\" is your USB drives letter and not another harddrive or CD ROM drive.
Another way it to just move the entire contents of your pygame/whatever folder onto your USB drive.
Another way it to just move the entire contents of your pygame/whatever folder onto your USB drive.
Ehhh....I'm not sure about those programs but some programs don't always confine themselves to the directory they're running from. In fact, I've came across programs that gave you the option of installing somewhere else...as long as that somewhere else was on drive C.
You're pretty much going up against how well those programs are designed. Good luck.
You're pretty much going up against how well those programs are designed. Good luck.
python requires python25.dll which you can find in C:\windows\system32
Copy that into your python25 directory and copy that to your flash drive and it should (fingers crossed) work.
i've tried it with the cli version of python, i'm not sure about idle or pygame, however.
Copy that into your python25 directory and copy that to your flash drive and it should (fingers crossed) work.
i've tried it with the cli version of python, i'm not sure about idle or pygame, however.
When I've needed to share data between two PCs I have usually set up a command file to synchronise the files on the flash drive with a local copy. SyncToy is a nice utility to automate the procedure.
If the applications you are trying to run refuse to install anywhere other than C:, just mount the drive under C:.
If the application stores data or settings in the correct location (typically C:\Documents and Settings\[User]\Application Data\...) you'd lose synch anyway. Running applications off a USB flash drive is a Bad Thing for a number of reasons.
If the applications you are trying to run refuse to install anywhere other than C:, just mount the drive under C:.
If the application stores data or settings in the correct location (typically C:\Documents and Settings\[User]\Application Data\...) you'd lose synch anyway. Running applications off a USB flash drive is a Bad Thing for a number of reasons.
Quote:Original post by Nice Coder
python requires python25.dll which you can find in C:\windows\system32
Copy that into your python25 directory and copy that to your flash drive and it should (fingers crossed) work.
i've tried it with the cli version of python, i'm not sure about idle or pygame, however.
woot this works for python and pygame but not IDLE.
Is there an editor that allows for python syntax highlighting that can be installed on a flash drive that holds it's configuration in the flash drive directory and can have a hotkey that maps to open command window and runs {current drive letter}\python24\python.exe {currently opened file}?
EDIT: got notepad++ to do the text editing, thanks guys
[Edited by - eedok on January 25, 2007 10:43:46 AM]
Here is an easy way to create a portable, clean version of Python for use on a USB stick.
1. Get the Python install package (python-2.5.msi)
2. Open a console window in the directory where you saved the install package
3. Type 'msiexec /a python-2.5.msi'
4. A network installation of Python is created in 'c:\Python25'
5. Delete the python-2.5.msi in 'c:\Python25'
6. Zip 'c:\Python25' and you have a ready-to-run Python in a zip
By the way, IDLE runs fine from this distribution. Just open a console window in the directory containing python.exe and type:
'start python .\Lib\idlelib\idle.py'
Of course you can put that in a batch file for easy access.
I have no experience with pygame so I can't help you with that.
1. Get the Python install package (python-2.5.msi)
2. Open a console window in the directory where you saved the install package
3. Type 'msiexec /a python-2.5.msi'
4. A network installation of Python is created in 'c:\Python25'
5. Delete the python-2.5.msi in 'c:\Python25'
6. Zip 'c:\Python25' and you have a ready-to-run Python in a zip
By the way, IDLE runs fine from this distribution. Just open a console window in the directory containing python.exe and type:
'start python .\Lib\idlelib\idle.py'
Of course you can put that in a batch file for easy access.
I have no experience with pygame so I can't help you with that.
My PC got stolen end of last year, being a book writer, that's pretty painfull. This website may help you understand portable app better (http://www.portableapps.com)
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement