gagsl-py2 at yahoo.com.ar
Mon Mar 2 12:27:51 CET 2009
En Mon, 02 Mar 2009 07:12:55 -0200, M Kumar <tomanishkb at gmail.com>
> Its just http, I am using pylons. Right now I am doing tht with extra
> parameter. But even if I get to know about the platform of the client
> machine, I need to use the other properties of the corresponding
> os module. for example I need to use "os.path". So even if I know about
> platform name how to use that information to get os module with the
> of tht particular platform.
The Windows version of os.path is ntpath; the Linux&Co version is
posixpath. You may import any of them explicitely. For other values, see
the os.py source.
(I think this answers your question, but I'm not sure it's the answer to
More information about the Python-list