wesley chun wrote:
import listen
You can use the __import__ function if you want, but generally you
want the import statement as above. The equivalent to 'import listen'
is:
listen = __import__('listen')
See the tutorial here: http://docs.python.org/tutorial/modules.html
you also hav
> import listen
>
> You can use the __import__ function if you want, but generally you
> want the import statement as above. The equivalent to 'import listen'
> is:
>
> listen = __import__('listen')
>
> See the tutorial here: http://docs.python.org/tutorial/modules.html
you also have to ma
2009/3/20 andré palma :
> Hi \o
> I'm asking if there is any #include( C) like or any include('File.php')
> (php) like in python.
> I have 2 files: "usbconnection.py" and "listen.py", And i want to use some
> classes avaiable in "listen.py" on my main file "usbconnection.py". I've
> tryed to do __i