os module

M Kumar tomanishkb at gmail.com
Mon Mar 2 09:43:49 CET 2009


Hi Chris,
Thanks for quick and kind reply, but the python program runs on the server,
sys.platform is linux only. What I want is I need to get a module, which
shud be exactly same as if I import os module on the client machine

On Mon, Mar 2, 2009 at 1:59 PM, Chris Rebert <clp2 at rebertia.com> wrote:

> On Mon, Mar 2, 2009 at 12:26 AM, M Kumar <tomanishkb at gmail.com> wrote:
> >
> > Hi,
> >
> > I am writing a server side program, clients can be any machine but the
> > server machine is Linux. In program I want to use the OS module based on
> the
> > client's operating system. But when I do "import os" m only able to get
> the
> > module with the property of Linux. ANy idea how to import the module with
> > the property of clients OS.
>
> You want sys.platform; see
> http://docs.python.org/library/sys.html#sys.platform
>
> Cheers,
> Chris
>
> --
> Shameless self-promotion:
> http://blog.rebertia.com
>



-- 
Regards,

Maneesh KB

Comat Technologies

Bangalore

Mob: 9740-192309



We work with the underprivileged and in rural India. If you are interested
to be a part of it, please mail or call me. I will be happy to share and
inform - http://www.comat.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20090302/8bc4612d/attachment.html>


More information about the Python-list mailing list