stdlib/os: Update method of extending builtin os.

pull/719/head
Andrew Leech 2023-08-21 12:08:30 +09:30
rodzic 01ab7ba6e2
commit 82501d721f
1 zmienionych plików z 8 dodań i 2 usunięć

Wyświetl plik

@ -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: