Thanks, I was able to do it very easily: IronPython 1.0.2279 (Beta) on .NET 2.0.50727.42 Copyright (c) Microsoft Corporation. All rights reserved. >>> import nt >>> nt.chdir(r'C:\tmp') >>> nt.getcwd() 'C:\\tmp' >>>
Best Regards, 2006/3/29, Sanghyeon Seo <[EMAIL PROTECTED]>: > 2006/3/29, HEMMI, Shigeru <[EMAIL PROTECTED]>: > > I want to use os.chdir. > > It's not included in Beta 4, but you can add it easily. > > --- IronPython/Modules/nt.cs.orig 2006-03-08 11:11:30.000000000 +0900 > +++ IronPython/Modules/nt.cs 2006-03-29 11:48:59.000000000 +0900 > @@ -148,2 +148,7 @@ > > + [PythonName("chdir")] > + public static void SetCurrentDirectory(string path) { > + Directory.SetCurrentDirectory(path); > + } > + > [PythonName("listdir")] > > Open Src\IronPython\Modules\nt.cs and add chdir function as above and > rebuild. IronPython ReadMe includes instruction to rebuild from the > source. > > I'm sure ever great IronPython team will fix this in the next release! :-) > > Seo Sanghyeon > _______________________________________________ > users mailing list > users@lists.ironpython.com > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > _______________________________________________ users mailing list users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com