upip: Update dependencies.

pull/26/head
Paul Sokolovsky 2015-05-07 00:36:37 +03:00
rodzic 6ac41f026e
commit 756ca09940
2 zmienionych plików z 11 dodań i 1 usunięć

Wyświetl plik

@ -1,6 +1,6 @@
import ffi
import array
import struct
import ustruct as struct
import upip_errno
import upip_stat as stat_
import upip__libc

Wyświetl plik

@ -47,3 +47,13 @@ def isdir(path):
return upip_stat.S_ISDIR(mode)
except OSError:
return False
def expanduser(s):
if s == "~" or s.startswith("~/"):
h = upip_os.getenv("HOME")
return h + s[1:]
if s[0] == "~":
# Sorry folks, follow conventions
return "/home/" + s[1:]
return s