I will try using .py instead and see if it helps. On 1/26/10, Ken Perry <whistler@xxxxxxxxxxxxx> wrote: > > > What is pyw? I have only ever seen py pyo and pyc. If you have a main.py > and have a functionlike > > Def myfunc(stuff): > > > Then yes you can do > > From main import myfunc > > Ken > > -----Original Message----- > From: programmingblind-bounce@xxxxxxxxxxxxx > [mailto:programmingblind-bounce@xxxxxxxxxxxxx] On Behalf Of Alex Hall > Sent: Tuesday, January 26, 2010 3:22 PM > To: Blind Programming List > Subject: importing in python > > Hi all, > I have three python files. One is main.pyw and the other two hold functions > that main.pyw uses. However, I am trying to import some vars from main into > one of the supporting files by saying > from main import funcName > but I get an error and I have no access to the function funcName. What is > going on? Can I not import from main.pyw? > > > Have a great day, > Alex (msg sent from PC) > Email: mehgcap@xxxxxxxxx > > __________ > View the list's information and change your settings at > //www.freelists.org/list/programmingblind > > __________ > View the list's information and change your settings at > //www.freelists.org/list/programmingblind > > -- Have a great day, Alex (msg sent from GMail website) Email: mehgcap@xxxxxxxxx __________ View the list's information and change your settings at //www.freelists.org/list/programmingblind