kopia lustrzana https://github.com/micropython/micropython-lib
upip: Update dependencies.
rodzic
6ac41f026e
commit
756ca09940
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Ładowanie…
Reference in New Issue