{-- Tue, 03 Jul 2012 11:23:56 +0200 (CEST): pito <p...@volna.cz> wrote: --}
  pito> Hi Keith, I'm trying to run your script under winXP. I had to
  pito> install "pyreadline-1.7.1.win32.exe" in order to get imported
  pito> the readline.  

Interesting.  I wasn't aware that the Windows version of python didn't
come with the required readline support.  Are you using the python from
python.org or some other one?  In any case, I did all my development
under Linux so I'm very happy to know it wasn't too difficult to get it
running under Windows.

  pito> Also I changed the /dev/.. to COM6 (my BT module)
  pito> and speed to 115k.  

Yup, that makes sense.

  pito> Let me ask you following, pls - how to
  pito> specify an Editor into the script - ie. my C:\WinAVR\pn\pn.exe
  pito> (Programmers Notepad)?

  pito> |I=Entering amforth interactive interpreter 
  pito> |I=using device.py for atmega1284p (ATmega1284P)
  pito> > 100 100 + .  200 ok
  pito> (ATmega1284P)> #edit myfrt 
  pito> |D=#edit myfrt Error: No editor specified.  Use --editor or EDITOR 
environment variable
  pito> (ATmega1284P)>

As the error says, you can either:

1) Pass an additional option to the script, for example

     "--editor=C:\WinAVR\pn\pn.exe"

2) Set an environment variable named EDITOR to the path to your editor.
   In Windows I believe that environment variables are set through a
   system control panel somewhere but I haven't used recent versions of
   Windows very much so I'm not sure if Microsoft has made changes to
   that.

Two other things to be aware of:

1) I'm not sure whether the path handling for calling the editor
   executable properly handles drive letters on Windows or not.  Please
   let us know if you try it out.  I don't think it should be too
   difficult to fix if it doesn't work properly.

2) The feature of opening the editor to the line where an upload error
   occurred only works for editors for which the script knows the
   appropriate command line syntax.  Otherwise it just attempts to open
   the file without moving to the line of the error.  The editors it
   knows about currently are: vi, vim, emacs, emacsclient, nano, and
   gedit.  You might want to add your editor.  The code is all in the
   "edit_file()" method.

--- Keith

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Amforth-devel mailing list for http://amforth.sf.net/
Amforth-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amforth-devel

Reply via email to