Skip to content

Latest commit

 

History

History
53 lines (35 loc) · 1.62 KB

os.rst

File metadata and controls

53 lines (35 loc) · 1.62 KB

The os Module

MicroPython contains an os module based upon the os module in the Python standard library. It's used for accessing what would traditionally be termed as operating system dependent functionality. Since there is no operating system in MicroPython the module provides functions relating to the management of the simple on-device persistent file system and information about the current system.

To access this module you need to:

import os

We assume you have done this for the examples below.

Functions

Note

There is no underlying operating system in MicroPython. As a result the information returned by the uname function is mostly useful for versioning details.