os: Import `path` automatically if available.

This matches CPython behavior:

```
>>> import os
>>> os.path.sep
'/'
```

Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
pull/537/head
Jim Mussared 2022-09-12 14:44:16 +10:00
rodzic f1039fd2f2
commit ad9309b669
1 zmienionych plików z 6 dodań i 0 usunięć

Wyświetl plik

@ -1,2 +1,8 @@
# Replace built-in os module.
from uos import *
# Provide optional dependencies (which may be installed separately).
try:
from . import path
except ImportError:
pass