import imp
print imp.find_module("wxPython")
print imp.find_module("os")
output:
---------- Python IN ----------
(None, 'C://Python24//lib//site-packages//wx-2.8-msw-unicode//wxPython', ('', '', 5))
(<open file 'C:/Python24/lib/os.py', mode 'U' at 0x00B23458>, 'C://Python24//lib//os.py', ('.py', 'U', 1))
輸出完成 (耗時: 0 秒) - 正常終止