← index #9286PR #1513
Related · high · value 0.882
QUERY · ISSUE

windows: os.sep should be backslash

openby jimmoopened 2022-09-12updated 2022-09-15
enhancement

This came up in https://github.com/micropython/micropython-lib/pull/527, and we have a workaround there, but getting this right will be required to make os.path work correctly.

The windows port current returns / from os.sep but should be \. We should fix that, as well as implementing os.altsep for unix/windows (return None on unix, / on windows).

CANDIDATE · PULL REQUEST

resolves visual studio FileNotFoundError: [Errno 2]

closedby beekalamopened 2015-10-16updated 2015-10-30

resolves visual studio FileNotFoundError: [Errno 2] No such file or directory:
'path_to_python_src\py\makeversionhdr.py/docs/conf.py'

this happens because of windows \ separators

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied