[IronPython] Bugs: os.environ and os.path.exists/os.stat
Neville Bagnall
neville.bagnall at propylon.com
Tue Feb 21 20:54:26 CET 2006
I've found these two cases of incorrect behaviour with Beta 3.
os.environ is not populated:
>>> import nt
>>> nt.environ
Traceback (most recent call last):
File , line 0, in input##414
AttributeError: 'module' object has no attribute 'environ'
>>> import os
>>> os.environ
{}
os.stat returns fails to raise an exception for non-existent files,
consequently os.path.exists always return True:
>>> import System.IO
>>> System.IO.Directory.Exists('c:/path')
False
>>> System.IO.Directory.GetCreationTime('c:/path')
01/01/1601 00:00:00
>>> import os
>>> os.path.exists('c:/path')
True
Regards,
Neville.
More information about the Ironpython-users
mailing list