>>>> getFilePath = lambda name: os.path.normpath('%s\\%s' % (sys.modules[name].prefix, sys.modules[name].__name__))
>>>> getFilePath('__main__')
Traceback (most recent call last):
File "<interactive input>", line 1, in ?
File "<interactive input>", line 1, in <lambda>
AttributeError: 'module' object has no attribute 'prefix'
>>>>
Can you help me?
-- http://mail.python.org/mailman/listinfo/python-list