[IronPython] os.chdir - An elementary question.

Yasir Alvi yalvi at exchange.microsoft.com
Wed Mar 29 20:47:35 CEST 2006


        I've filed this bug...it'll be fixed for Beta 5.

Thanks,
Yasir

-----Original Message-----
From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of HEMMI, Shigeru
Sent: Tuesday, March 28, 2006 7:44 PM
To: Discussion of IronPython
Subject: Re: [IronPython] os.chdir - An elementary question.

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 <sanxiyn at gmail.com>:
> 2006/3/29, HEMMI, Shigeru <textdirected at gmail.com>:
> > 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 at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>
_______________________________________________
users mailing list
users at lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com



More information about the Ironpython-users mailing list