Re: [Tutor] HI, #Include like in python

2009-03-20 Thread A.T.Hofkamp
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

Re: [Tutor] HI, #Include like in python

2009-03-19 Thread wesley chun
>    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

Re: [Tutor] HI, #Include like in python

2009-03-19 Thread John Fouhy
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