Skip to content

Commit 35f7752

Browse files
committed
Micropython doesn't have os.sep property
1 parent 213709b commit 35f7752

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

PyDOS.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
import os
2-
from os import sep
2+
try:
3+
from os import sep
4+
except:
5+
sep = os.getcwd()[0]
36
from time import localtime
47
from sys import stdin,implementation,path
58
if not sep+'lib' in path:
@@ -64,7 +67,7 @@ def PyDOS():
6467
global envVars
6568
if "envVars" not in globals().keys():
6669
envVars = {}
67-
_VER = "1.24"
70+
_VER = "1.25"
6871
prmpVals = ['>','(',')','&','|','\x1b','\b','<','=',' ',_VER,'\n','$','']
6972

7073
print("Starting Py-DOS...")

0 commit comments

Comments
 (0)