Returns the current working directory. # TODO: is it a good idea to use the current dir? Some use-cases may not allow us to depend on the current dir.
()
| 59 | |
| 60 | |
| 61 | def pwd (): |
| 62 | """ Returns the current working directory. |
| 63 | # TODO: is it a good idea to use the current dir? Some use-cases |
| 64 | may not allow us to depend on the current dir. |
| 65 | """ |
| 66 | return make (os.getcwd ()) |
| 67 | |
| 68 | def is_rooted (path): |
| 69 | """ Tests if a path is rooted. |