Grigory wrote...
import os
print os.path.split("/home/user/motoom")[0]
print os.path.split(" c:\\prj\\techni ques\\python")[0]
--
"The ability of the OSS process to collect and harness
the collective IQ of thousands of individuals across
the Internet is simply amazing." - Vinod Vallopillil
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".
>Also I want to use it as platform independent. If I want to pass "c:
>\that\path" then I need to get "c:\that".
print os.path.split("/home/user/motoom")[0]
print os.path.split(" c:\\prj\\techni ques\\python")[0]
--
"The ability of the OSS process to collect and harness
the collective IQ of thousands of individuals across
the Internet is simply amazing." - Vinod Vallopillil