How to know a top directory?

Grigory Temchenko soid.exe at gmail.com
Sat Aug 23 13:15:25 CEST 2008


Hey there,

Help me please. How to know a top directory? I mean I have path "/this/
is/path" and I wanna get "/this/is".
Also I want to use it as platform independent. If I want to pass "c:
\that\path" then I need to get "c:\that".

Does anyone have ideas?



More information about the Python-list mailing list