We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d923ce0 commit b0f349aCopy full SHA for b0f349a
1 file changed
internal_filesystem/main.py
@@ -15,12 +15,10 @@
15
# Ensure os.path is available before starting apps.
16
# internal_filesystem/lib/os/__init__.py provides a pure-Python os package
17
# (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
+import os
+sys.modules["uos"] = os
21
22
print("Free space on root filesystem:")
23
-import os
24
stat = os.statvfs("/")
25
total_space = stat[0] * stat[2]
26
free_space = stat[0] * stat[3]
0 commit comments