os.path: Add poorman's abspath().

pull/118/head
Paul Sokolovsky 2014-05-14 21:16:46 +03:00
rodzic c023b96f60
commit e3c3872185
2 zmienionych plików z 6 dodań i 1 usunięć

Wyświetl plik

@ -7,6 +7,9 @@ def normcase(s):
def normpath(s):
return s
def abspath(s):
return os.getcwd() + "/" + s
def join(*args):
# TODO: this is non-compliant
return "/".join(args)

Wyświetl plik

@ -1,4 +1,6 @@
from os.path import *
import sys
sys.path[0] = "os"
from path import *
assert split("") == ("", "")
assert split("path") == ("", "path")