Jim wrote: > Hi, > > I have created an import module. And would like to access a function > from the main script, e.g., > > file abc.py: > ################### > def a(): > m() > return None > #################### > > file main.py: > ##################### > from abc import * > def m(): > print 'something' > return None > > a() > ###################### > > python25.exe main.py >
import __main__ ... __main__.m() but better make a start.py and "import main" - then its symmetric Robert -- http://mail.python.org/mailman/listinfo/python-list