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
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
[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
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,
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
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
[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).
| [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
* 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 =
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
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:
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
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
cjl schrieb:
I do set pythonpath, see above.
is pythonpath really case insensitive on windows ?
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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.
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
* 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
* 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:
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:
* 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.
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
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
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
25 matches
Mail list logo