Re: os module

2009-03-02 Thread Gabriel Genellina
En Mon, 02 Mar 2009 07:12:55 -0200, M Kumar escribió: 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 machine's os module. for example

Re: os module

2009-03-02 Thread Tim Chase
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 machine's os module. HTTP doesn't require the client browser to send any such information

Re: os module

2009-03-02 Thread Chris Rebert
> On Mon, Mar 2, 2009 at 2:31 PM, Chris Rebert wrote: >> > On Mon, Mar 2, 2009 at 2:17 PM, Chris Rebert wrote: >> >> > On Mon, Mar 2, 2009 at 1:59 PM, Chris Rebert >> >> > wrote: >> >> >> On Mon, Mar 2, 2009 at 12:26 AM, M Kumar >> >> >> wrote: >> >> >> > >> >> >> > Hi, >> >> >> > >> >> >> > I

Re: os module

2009-03-02 Thread M Kumar
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 machine's os module. for example I need to use "os.path". So even if I know about the platform

Re: os module

2009-03-02 Thread Chris Rebert
> On Mon, Mar 2, 2009 at 2:17 PM, Chris Rebert wrote: >> >> > On Mon, Mar 2, 2009 at 1:59 PM, Chris Rebert wrote: >> >> >> >> On Mon, Mar 2, 2009 at 12:26 AM, M Kumar wrote: >> >> > >> >> > Hi, >> >> > >> >> > I am writing a server side program, clients can be any machine but >> >> > the >> >> >

Re: os module

2009-03-02 Thread M Kumar
Oh that might be the problem, I m new to this and new to this kind of conversations. What you said was correct. But what I am looking for is, if one client reqst comes I need to process the data which I got from the client, so I need to use the os module. But since my program executes on the server

Re: os module

2009-03-02 Thread Chris Rebert
> On Mon, Mar 2, 2009 at 1:59 PM, Chris Rebert wrote: >> >> On Mon, Mar 2, 2009 at 12:26 AM, M Kumar 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 >> > cl

Re: os module

2009-03-02 Thread M Kumar
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 wrote: > On Mon, Mar 2,

Re: os module

2009-03-02 Thread Chris Rebert
On Mon, Mar 2, 2009 at 12:26 AM, M Kumar 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 w