[IronPython] os.chdir - An elementary question.
Sanghyeon Seo
sanxiyn at gmail.com
Wed Mar 29 04:53:27 CEST 2006
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
More information about the Ironpython-users
mailing list