> Is it possible to use a socket library from Tython.  I tried "from
> socket import *" but received an "ImportError: no module named
> socket".

The current released version didn't include all the python code that
implements the standard python libraries. I've updated the head of the
CVS tree with a jar file that contains these libraries and modified
Tython to include this jar file in the import path, so if you update
and rebuild this should work for you now. 

Note that the path setup is somewhat dependant on your classpath so it
will not work if you copy simdriver.jar to some random location and
then run it without a CLASSPATH.

> Do I need to import any specific Java package that implements the
> socket objects ?

This is another option. Because Tython lets you use all the core java
classes from within the script, your script could use the java
interface by first calling 'from java.net import *' and then use all
the java objects. Presumably the python wrappers will be more
convenient, though both will work.

-mike

_______________________________________________
Tinyos-users mailing list
[EMAIL PROTECTED]
http://mail.Millennium.Berkeley.EDU/mailman/listinfo/tinyos-users

Reply via email to