Re: Running python from a usb drive

2006-09-13 Thread Jason
cjl wrote: Thorsten: Thank you for your reply. Setting environment variables has only effect on the process itself and the subprocesses. This has nothing to do with Windows, it's the same with Linux. True, and the changes to path and pythonpath are gone after I close the console

Re: Running python from a usb drive

2006-09-12 Thread cjl
Jason: Thanks! That worked...in fact, almost everything is now working as expected (so far). Here is my batch file: echo Making changes to path and file associations... path = %PATH%;%CD%Python24;%CD%Python24\libs;%CD%Python24\Scripts;%CD%Python24\Lib\site-packages;%CD%Python24\DLLs set

RE: Running python from a usb drive

2006-09-12 Thread Tim Golden
[cjl] [... snip ...] | set PATHTEXT=.py;%PATHTEXT% | I'm still having a problem with setting PATHTEXT... That would be because it's PATHEXT not PATHTEXT (it's sort of like a PATH but for EXTensions). TJG This e-mail has

Re: Running python from a usb drive

2006-09-12 Thread cjl
Tim: That would be because it's PATHEXT not PATHTEXT (it's sort of like a PATH but for EXTensions). Doh. Me fail English? That's unpossible. Thanks, I think everything is working with my poor man's movable python. Last on my todo list is to restore the assoc and ftype settings when I'm done,

Re: Running python from a usb drive

2006-09-12 Thread John Machin
cjl wrote: Tim: That would be because it's PATHEXT not PATHTEXT (it's sort of like a PATH but for EXTensions). Doh. Me fail English? That's unpossible. Thanks, I think everything is working with my poor man's movable python. Last on my todo list is to restore the assoc and ftype

Re: Running python from a usb drive

2006-09-12 Thread cjl
John: Congratulations. Now: how much time have you spent, and how much per hour are you worth? hours * dollars_per_hour GBP_to_USD(4.99) ??? Since you mention it, I am currently earning about $200 an hour (when I'm working), and I spent about 3 hours on this, so this cost me about $600. I

RE: Running python from a usb drive

2006-09-12 Thread Tim Golden
[cjl] | Any ideas about how to set file type associations without writing to | the registry? Well, yes. Just the same as was in the article you pointed to... or have I missed something? assoc .py=python.file ftype python.file=c:\python24\python.exe %1 %* (or whatever version of Python).

RE: Running python from a usb drive

2006-09-12 Thread Tim Golden
| [cjl] | | | Any ideas about how to set file type associations without writing to | | the registry? | [Tim Golden] | Well, yes. Just the same as was in the article you pointed | to... or have I missed something? Ah, I see. Presumably the FTYPE / ASSOC commands write things to the registry

Re: Running python from a usb drive

2006-09-12 Thread Thorsten Kampe
* cjl (2006-09-12 13:10 +0100) Jason: Thanks! That worked...in fact, almost everything is now working as expected (so far). Here is my batch file: echo Making changes to path and file associations... path =

Re: Running python from a usb drive

2006-09-12 Thread cjl
Thorsten: Thank you for your reply. Setting environment variables has only effect on the process itself and the subprocesses. This has nothing to do with Windows, it's the same with Linux. True, and the changes to path and pythonpath are gone after I close the console window, but the results

Running python from a usb drive

2006-09-11 Thread cjl
Hey: I am trying to run python from a usb drive under windows xp. I installed python for this user on to a machine, then copied the entire Python24 directory to the usb drive. I have the following in a batch file at the root of the drive:

Re: Running python from a usb drive

2006-09-11 Thread Jordan
If making a usb version of python was that easy, movable python would be open source. Check out http://www.voidspace.org.uk/python/movpy/ if you need a portable usb version of python for work or something. Copying the Python24 directory is a good start, but doesn't include the enormous number of

Re: Running python from a usb drive

2006-09-11 Thread cjl
Jordan: Thank you for your reply. If making a usb version of python was that easy, movable python would be open source. I knew about movable python, but I'm not using it because it's not open source. I guess those guys but some work into it, and feel like a small fee is appropriate, but I

Re: Running python from a usb drive

2006-09-11 Thread Uwe Hoffmann
cjl schrieb: I do set pythonpath, see above. is pythonpath really case insensitive on windows ? -- http://mail.python.org/mailman/listinfo/python-list

Re: Running python from a usb drive

2006-09-11 Thread Steve Holden
Uwe Hoffmann wrote: cjl schrieb: I do set pythonpath, see above. is pythonpath really case insensitive on windows ? Only because the Windows filesystem implements case-insensitive semantics. This is nothing to do with Python: C:\Steve\Projects\Python\dbimpdir DB.py Volume in drive C

Re: Running python from a usb drive

2006-09-11 Thread Uwe Hoffmann
Steve Holden schrieb: Uwe Hoffmann wrote: cjl schrieb: I do set pythonpath, see above. is pythonpath really case insensitive on windows ? Only because the Windows filesystem implements case-insensitive semantics. This is nothing to do with Python: no, i mean't the name not the

Re: Running python from a usb drive

2006-09-11 Thread cjl
Uwe: Thank you for your reply. is pythonpath really case insensitive on windows ? I think so. After running my batch file, I can load the python interpreter by typing 'python', and can then type 'import django' without error. This lives in the site-packages directory, so it is finding it.

Re: Running python from a usb drive

2006-09-11 Thread Steve Holden
Uwe Hoffmann wrote: Steve Holden schrieb: Uwe Hoffmann wrote: cjl schrieb: I do set pythonpath, see above. is pythonpath really case insensitive on windows ? Only because the Windows filesystem implements case-insensitive semantics. This is nothing to do with Python: no, i mean't

Re: Running python from a usb drive

2006-09-11 Thread Thorsten Kampe
* cjl (2006-09-11 20:34 +0100) Copying the Python24 directory is a good start, but doesn't include the enormous number of registry keys that are included in the install and are probably needed for the complete capabilites of python. Is the source of the windows python installer available? I

Re: Running python from a usb drive

2006-09-11 Thread Thorsten Kampe
* Steve Holden (2006-09-11 21:37 +0100) Uwe Hoffmann wrote: cjl schrieb: I do set pythonpath, see above. is pythonpath really case insensitive on windows ? Only because the Windows filesystem implements case-insensitive semantics. This is nothing to do with Python: That's nonsense:

Re: Running python from a usb drive

2006-09-11 Thread Steve Holden
Thorsten Kampe wrote: * Steve Holden (2006-09-11 21:37 +0100) Uwe Hoffmann wrote: cjl schrieb: I do set pythonpath, see above. is pythonpath really case insensitive on windows ? Only because the Windows filesystem implements case-insensitive semantics. This is nothing to do with Python:

Re: Running python from a usb drive

2006-09-11 Thread Thorsten Kampe
* Steve Holden (2006-09-12 01:30 +0100) Thorsten Kampe wrote: * Steve Holden (2006-09-11 21:37 +0100) Uwe Hoffmann wrote: cjl schrieb: I do set pythonpath, see above. is pythonpath really case insensitive on windows ? Only because the Windows filesystem implements case-insensitive semantics.

Re: Running python from a usb drive

2006-09-11 Thread cjl
Hey all: I'm getting closer. My startpython.bat file is now: path=%PATH%;%CD%Python24;%CD%Python24\libs;%CD%Python24\Scripts;%CD%Python24\Lib\site-packages;%CD%Python24\DLLs set PYTHONPATH=%CD%Python24 ASSOC .py=Python.File ASSOC .pyc=Python.CompiledFile ASSOC .pyo=Python.CompiledFile ASSOC

Re: Running python from a usb drive

2006-09-11 Thread cjl
Hey all: It seems no matter what I do the %1 gets replaced by paramaters sent to the batch file...there must be some way of escaping this, but I can't find the answer (yet) with google. Anyone? -CJL -- http://mail.python.org/mailman/listinfo/python-list

Re: Running python from a usb drive

2006-09-11 Thread Jason
cjl wrote: Hey all: It seems no matter what I do the %1 gets replaced by paramaters sent to the batch file...there must be some way of escaping this, but I can't find the answer (yet) with google. Anyone? -CJL Use two percents in a row turn into a single percentage sign. So you'd want