|
From: Ype K. <yk...@xs...> - 2001-04-01 22:35:03
|
Marc, >Hi, > >I just started writing a CNC package in Python for the SimpleStep controller >board. This controller board receives commands through the serial port. I >managed this with Mark Hammond's Win extensions for Python, but I consider >not to continue this way because I'ld like my programs to be portable. As >Python doesn't support native serial IO support, I looked at Jython. As far >as I could see, the Jython distribution doesn't include the javax.comm API >which I found at java.sun.com. So my question is: How can I get the >javax.comm API working with Jython? Normally, if you can call something from Java you can call it from Jython. Just put it on the class path (like classes.zip for java.lang.*) for the jython interpreter and then use the following in a jython program: from javax.comm import * or import javax Good luck, Ype |