From: dman <ds...@ri...> - 2001-11-04 17:56:03
|
On Sun, Nov 04, 2001 at 04:13:55PM +0100, rob...@ya... wrote: | hi finn, | | what i dont get is: why dont you use the os-module | that comes with cpython? | | >>>>>copy of os.py<<<<<< | import sys | | _names = sys.builtin_module_names | altsep = None | if 'posix' in _names: | <<<<<<<<<<<<<<<<<<<<<<<<<<< | | if sys.builtin_module_names would return the | nt or so everything would just run fine (id | assume ;-) ) | the os module implementation stuff relies on the C api of the os itself, if you go deep enough. Java is, in a sense, a separate OS because it doesn't follow POSIX or Windows but does its own thing. -D |