kopia lustrzana https://github.com/micropython/micropython-lib
stdlib/os: Update method of extending builtin os.
rodzic
01ab7ba6e2
commit
82501d721f
|
@ -1,5 +1,11 @@
|
||||||
# Replace built-in os module.
|
# Include built-in os module.
|
||||||
from uos import *
|
import sys
|
||||||
|
__path = sys.path
|
||||||
|
try:
|
||||||
|
sys.path.clear()
|
||||||
|
from os import *
|
||||||
|
finally:
|
||||||
|
sys.path.extend(__path)
|
||||||
|
|
||||||
# Provide optional dependencies (which may be installed separately).
|
# Provide optional dependencies (which may be installed separately).
|
||||||
try:
|
try:
|
||||||
|
|
Ładowanie…
Reference in New Issue