[IronPython] IronPython 1.0 Beta7 can't import module from zip archive?

smppms2002 smppms2002 at yahoo.com.cn
Sat Jun 3 17:03:49 CEST 2006


test.zip include a.py and b.py.
bellowing is the test.py

import sys
import nt

print sys.version

sys.path.append( nt.getcwd() + "\\" + "test.zip" )

from a import *
from b import *

a()
b()

bellowing is test result:

D:\IronPython\IronPython-1.0-Beta7>python test.py
2.3.5 (#62, Feb  9 2005, 16:17:08) [MSC v.1200 32 bit
(Intel)]
this is a
this is b

D:\IronPython\IronPython-1.0-Beta7>IronPythonConsole
test.py
IronPython 1.0.60523 (Beta) on .NET 2.0.50727.42
Traceback (most recent call last):
  File D:\IronPython\IronPython-1.0-Beta7\test.py,
line 8, in Initialize
  File , line 0, in __import__##3
ImportError: No module named a

__________________________________________________
赶快注册雅虎超大容量免费邮箱?
http://cn.mail.yahoo.com



More information about the Ironpython-users mailing list