[PythonCE] RE: Answers (?) to Some of Ryan's Questions...
Isr Gish
isrgish at fastem.com
Tue Jun 15 08:58:42 EDT 2004
Hi Nemo,
To associate .py and .pyc files you have to make an entry in the registry like this
HKEY_CLASSES_ROOT\.py
"Default"="PySource"
HKEY_CLASSES_ROOT\.pyc
Default=PySource
HKEY_CLASSES_ROOT\PySource
HKEY_CLASSES_ROOT\PySource\DefaultIcon
Default=\\Program Files\\Python\\python.exe, 0
HKEY_CLASSES_ROOT\PySource\shell
HKEY_CLASSES_ROOT\PySource\shell\open
HKEY_CLASSES_ROOT\PySource\shell\open\command
Default= "\Program Files\Python\python.exe" "%1" %*
This works fine for me. If you want it in a storage card then replace all the refrences to "Prgram Files" with the full path in the storage card.
All the best
Isr
-----Original Message-----
>From: "Nemo"<bokkenka at yahoo.com>
>Sent: 6/14/04 3:15:21 PM
>To: "pythonce at python.org"<pythonce at python.org>
>Subject: [PythonCE] RE: Answers (?) to Some of Ryan's Questions...
>
>> Ive been trying to get python running on a ipaq 5450,
>> running pocketpc 4.20.1081.
>
>> - Are the 2.3 binaries known to work on the above spec?
>
>I have a 5550 that I've been trying off-and-on... The interpretor
>runs, but I'm not much farther than that. I'm using 2.3 from...
> http://fore.validus.com/~kashtan/
>...and "input() & raw_input() for PPC" from...
> http://www.murkworks.com/Research/Python/PythonCE/PythonCEWiki
> /Input_28_29_26Raw_5finput_28_29ForPPC
>
>> - How would i run a script?
>
>I tried once to associate .py and .pyc to Python, but didn't get
>anywhere. After reading all the doc pages on the 'net (maybe two),
>I've finally stumbled upon the execfile() command. From the
>interpretor, I type in...
>
>execfile('/storage card/python/scriptname.py')
>
>...and it executes the script. I just discovered this today, so I'm
>not yet past the "hello world" phase. I'm actually using a note with
>my execfile commands, then copy/paste into the interpretor.
>[ctrl][x,c,v] actually works, which saves a ton of typing on the little
>keyboard.
>
>TTFN,
>
>Nemo -- N'rn Wisconsin
>
>nemo.ironcountyforest.org
>
>
>
>
>_______________________________________________
>PythonCE mailing list
>PythonCE at python.org
>http://mail.python.org/mailman/listinfo/pythonce
More information about the PythonCE
mailing list