kopia lustrzana https://github.com/micropython/micropython-lib
os: Import `path` automatically if available.
This matches CPython behavior: ``` >>> import os >>> os.path.sep '/' ``` Signed-off-by: Jim Mussared <jim.mussared@gmail.com>pull/537/head
rodzic
f1039fd2f2
commit
ad9309b669
|
@ -1,2 +1,8 @@
|
||||||
# Replace built-in os module.
|
# Replace built-in os module.
|
||||||
from uos import *
|
from uos import *
|
||||||
|
|
||||||
|
# Provide optional dependencies (which may be installed separately).
|
||||||
|
try:
|
||||||
|
from . import path
|
||||||
|
except ImportError:
|
||||||
|
pass
|
||||||
|
|
Ładowanie…
Reference in New Issue