From: pito <pi...@vo...> - 2012-07-03 15:51:55
|
Keith > version of python didn't > come with the required readline support. I am using python 2.7, installed long time back. No idea where it comes from :) > 1) Pass an additional option to the script, for > example > > "--editor=C:\WinAVR\pn\pn.exe" Yes, it works, I did a .bat file where I start your script with above option. #edit pytest.frt opens the PN with the file (file located in the same dir as your script). Closing the PN returns to the prompt. (ATmega1284P)> #edit pytest.frt |D=#edit pytest.frt (ATmega1284P)> #include pytest.frt |D=#include pytest.frt |I=mcudef |I=using device.py for atmega1284p |F=C:\MyCode\AVR\WINAVR\projects\AMFORTH\new_amforth\trunk\tools\pytest.frt ||S| 1|-pytest |E=-pytest ?? -13 7 Error: Error in line sent (ATmega1284P)> #include pytest.frt |D=#include pytest.frt |I=mcudef |I=using device.py for atmega1284p |F=C:\MyCode\AVR\WINAVR\projects\AMFORTH\new_amforth\trunk\tools\pytest.frt ||W| 1| |S| 2|marker -pytest |S| 3|: foo 1.2223e-4 555.322e2 f* fs. ; (ATmega1284P)> foo 6.78770E0 ok (ATmega1284P)> #include pytest.frt |D=#include pytest.frt |I=mcudef |I=using device.py for atmega1284p |F=C:\MyCode\AVR\WINAVR\projects\AMFORTH\new_amforth\trunk\tools\pytest.frt ||S| 1|-pytest |S| 2|marker -pytest |S| 3|: foo 1.2223e-4 555.322e2 f* fs. ; (ATmega1284P)> Now I have to tackle the automatic opening the PN when error.. Thanks, P. |