Re: [PythonCE] Trying to Code Python ON a Pocket PC Phone

2006-09-27 Thread Luke Dunstan

- Original Message - 
From: Bandung [EMAIL PROTECTED]
To: pythonce@python.org
Sent: Wednesday, September 27, 2006 2:35 AM
Subject: Re: [PythonCE] Trying to Code Python ON a Pocket PC Phone


 I
 wish there was a path equivalent for Windows mobile so that I could put
 \Storage Card\Program Files\Python24 in the path statement and just type
 :!start python.exe

Have you tried this?:

:!start \Storage Card\Program Files\Python24\python.exe

(I haven't)

Luke

___
PythonCE mailing list
PythonCE@python.org
http://mail.python.org/mailman/listinfo/pythonce


Re: [PythonCE] Trying to Code Python ON a Pocket PC Phone

2006-09-27 Thread Bandung

Yes, I've tried typing long path names that point into the Storage Card and I
get nothing but the failed error -1.  Too bad windows doesn't have the same
concept as a Linux link.  It seems that if I put my *.exe files into the
windows directory, then :!start will find it.



Luke Dunstan wrote:
 
 
 - Original Message - 
 From: Bandung [EMAIL PROTECTED]
 To: pythonce@python.org
 Sent: Wednesday, September 27, 2006 2:35 AM
 Subject: Re: [PythonCE] Trying to Code Python ON a Pocket PC Phone
 
 
 I
 wish there was a path equivalent for Windows mobile so that I could put
 \Storage Card\Program Files\Python24 in the path statement and just type
 :!start python.exe
 
 Have you tried this?:
 
 :!start \Storage Card\Program Files\Python24\python.exe
 
 (I haven't)
 
 Luke
 
 ___
 PythonCE mailing list
 PythonCE@python.org
 http://mail.python.org/mailman/listinfo/pythonce
 
 

-- 
View this message in context: 
http://www.nabble.com/Trying-to-Code-Python-ON-a-Pocket-PC-Phone-tf2293883.html#a6530716
Sent from the Python - pythonce mailing list archive at Nabble.com.

___
PythonCE mailing list
PythonCE@python.org
http://mail.python.org/mailman/listinfo/pythonce


Re: [PythonCE] Trying to Code Python ON a Pocket PC Phone

2006-09-27 Thread Bandung

Ugggh.  retraction here. I can indeed call python.exe from my storage card
using the long path convention.  What I meant to say is that  I haven't yet
figured out how to execute a script sitting on my storage card.  Thank you
for pointing it out that executables do indeed work with the full path
statement.  Unfortunately for me, the whole point of this whole sordid
exercise is to get the script to run.. 

That old gotcha about the lack of a true console and commands such as
raw_input or input not being supported within the pythonce port has
reared its ugly head again.  And as you once wrote on this site, this is
probably why commands such as python.exe -i or the -m or -c option don't
work.

Still there is hope that this exercise might yet work.  I found a little
utility that will start python.exe and then when I pass along the name of
the python script that I wish to run, it runs that script.   Its a binary
that installs on the pda.  
http://www.pocketpcdn.com/articles/samples/Run_arm.exe run_arm.exeSo if
the author figured out how to do that with his proggie, then I most
assuredly should be able to do it within Vim.

Apart from having the desire to have the commands raw_input and
python.exe -i {script} working, I would love to have my pocket Vim
compiled with the python option.  In that way, I could write my Vim macros
in python!  Alas I know jack about how to get visual studio to compile
anything.  I still have eVC3 which I used to use for little Visual Basic
proggies on my HPC 2000 but that was way back when I was a Microsoft bigot. 
Since all of my programming efforts are simply part time and personal,
today, if it doesn't say Open Source with the word Python along side of
it, I ain't very interested.

Anyways, the pocket Vim  exercise looks mucho promising.  Now if I could
just get pysqlite with sqlite3 and wxpythonce and bwidgets to bleepin
work...


Bandung wrote:
 
 Yes, I've tried typing long path names that point into the Storage Card
 and I get nothing but the failed error -1.  Too bad windows doesn't have
 the same concept as a Linux link.  It seems that if I put my *.exe files
 into the windows directory, then :!start will find it.
 
 
 Luke Dunstan wrote:
 
 
 - Original Message - 
 From: Bandung [EMAIL PROTECTED]
 To: pythonce@python.org
 Sent: Wednesday, September 27, 2006 2:35 AM
 Subject: Re: [PythonCE] Trying to Code Python ON a Pocket PC Phone
 
 
 I
 wish there was a path equivalent for Windows mobile so that I could
 put
 \Storage Card\Program Files\Python24 in the path statement and just type
 :!start python.exe
 
 Have you tried this?:
 
 :!start \Storage Card\Program Files\Python24\python.exe
 
 (I haven't)
 
 Luke
 
 ___
 PythonCE mailing list
 PythonCE@python.org
 http://mail.python.org/mailman/listinfo/pythonce
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Trying-to-Code-Python-ON-a-Pocket-PC-Phone-tf2293883.html#a6532035
Sent from the Python - pythonce mailing list archive at Nabble.com.

___
PythonCE mailing list
PythonCE@python.org
http://mail.python.org/mailman/listinfo/pythonce


Re: [PythonCE] Trying to Code Python ON a Pocket PC Phone

2006-09-26 Thread Bandung

The only way that I know how to edit a *.py file rather than execute it is
to change the registry entry that *.py points to in your registry.  Normally
.py calls the pyfile  entry and it is within pyfile where  one types the
command to launch python24.exe.   I simply point *.py to my Vim Open Start
command which is within the registry entry vimfile and Vim launches
instead.  If you use idle as your editor, I suppose you could get it to do
the same thing.  If you are not familiar with modifying your registry to do
this, don't worry.  There are utilities that can do this for you.

Now by doing this, you realize that you can no longer execute *.py files
when you double click on them  if you have a windows mobile 5.0 device. 
Since there is no console for Windows mobile 5.0, there is no way to launch
a *.py without double clicking on it.  If you have a windows mobile 2003,
then you can download a console programme that will permit you to launch
your *.py files  from a dos like command line.  

So why do this personally?  Well its only when I am doing a lot of editiing
and I get weary of launching Vim and then opening up the appropriate *.py
file.  Without this trick, its a lot of keystrokes to open up a *.py file
via Vim because Vim always starts its file open search in the default
directory within main storage and all of my files are buried deep down a
directory tree on my Storage Card.

I can shell out of Vim on my desktop to run programmes that I am editing
within Vim without exiting Vim.  I haven't tried that on my pda because
windows mobile 5.0 doesn't have a console so I naturally assume that I'm
screwed.  Because in most cases, I am screwed on Windows Mobile 5.0  I can't
get things like OpenSSH working because this version of mobile windoze lacks
this console.  Plus there are many other terrible side effects to this
missing console feature such as not having any raw_inout capabilities from
my python24ce interpreter.

Sigh 


David P. Gil wrote:
 
 I copied some files for a basic Python project im working onto my PDA
 Phone
 to work on and install PythonCE on it. In a previous reply, someone told
 me
 to just double tap my python files and it should allow me to edit them.
 Apparently when I do this, the script is run instead. I don't want to use
 interactive mode I want the script mode so I can write and edit bigger
 python programs. Does anyone know how I can do this?
 
 Sorry if this seems like too basic of a question. Have sympathy, I am an
 artist working in the game industry taking interest in the wacky work of
 programming. Thanks in advance for any help you can provide.
 
 ___
 PythonCE mailing list
 PythonCE@python.org
 http://mail.python.org/mailman/listinfo/pythonce
 
 

-- 
View this message in context: 
http://www.nabble.com/Trying-to-Code-Python-ON-a-Pocket-PC-Phone-tf2293883.html#a6508667
Sent from the Python - pythonce mailing list archive at Nabble.com.

___
PythonCE mailing list
PythonCE@python.org
http://mail.python.org/mailman/listinfo/pythonce


[PythonCE] Trying to Code Python ON a Pocket PC Phone

2006-09-18 Thread David P. Gil
I copied some files for a basic Python project im working onto my PDA Phone to work on and install PythonCE on it. In a previous reply, someone told me to just double tap my python files and it should allow me to edit them. Apparently when I do this, the script is run instead. I don't want to use interactive mode I want the script mode so I can write and edit bigger python programs. Does anyone know how I can do this? 
Sorry if this seems like too basic of a question. Have sympathy, I am an artist working in the game industry taking interest in the wacky work of programming. Thanks in advance for any help you can provide.
___
PythonCE mailing list
PythonCE@python.org
http://mail.python.org/mailman/listinfo/pythonce