I want to change os.path in os.py, but it failed. path is different in different platform.
os.py
import ntpath as path
sys.modules['os.path'] = path
from os.path import (curdir, pardir, sep, pathsep, defpath, extsep, altsep, devnull)
It turns out that
from os.path import (curdir, pardir, sep, pathsep, defpath, extsep, altsep,
devnull)
ImportError: No module named path
zetyszis suggesting that you do:vars(os.path).update(vars(ntpath))-- Which should replaceos.pathmethods with theirntcounterparts (or do nothing if you're on windows. . .)os.py?