Skip to content

Commit b0f349a

Browse files
committed
Simplify "os" / "uos" work-a-round
1 parent d923ce0 commit b0f349a

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

internal_filesystem/main.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,10 @@
1515
# Ensure os.path is available before starting apps.
1616
# internal_filesystem/lib/os/__init__.py provides a pure-Python os package
1717
# (from micropython-lib) that wraps uos and exposes os.path.
18-
import os as _os
19-
sys.modules["os"] = _os
20-
sys.modules["uos"] = _os
18+
import os
19+
sys.modules["uos"] = os
2120

2221
print("Free space on root filesystem:")
23-
import os
2422
stat = os.statvfs("/")
2523
total_space = stat[0] * stat[2]
2624
free_space = stat[0] * stat[3]

0 commit comments

Comments
 (0)