How to get inputs for a python program that run from another python program

2007-06-11 Thread pradeep nair
I would like to know how to pass keyboard input for a python script which is ran by another script. for eg: hello1.py: import os if __name__=='__main__': print "I will call this other program called hello.py" os.system("python hello.py") print "hello1.py" hello.py: import os

how to find the OS name..??

2007-04-21 Thread pradeep nair
How do i determine the type of OS i'm working on using python??(i.e whether CentOS,Fedora,SLES,...along with the version) -- http://mail.python.org/mailman/listinfo/python-list

FInd files with .so extension

2007-05-02 Thread pradeep nair
HI, How do i find files with .so extension using python . -- http://mail.python.org/mailman/listinfo/python-list

Re: FInd files with .so extension

2007-05-02 Thread pradeep nair
AIL PROTECTED]> wrote: > > > May be this would work > > > import os > > > grep="so" > > > dir="." > > > lst = os.listdir(dir) > > > filelst=[] > > > for i in lst: > > > if i.split("

How to find the present working directory using python.

2007-05-04 Thread pradeep nair
how to find out the present working directory using python. os.system('pwd') works good. But i need some specific one in python rather than embedding shell command into python. -- http://mail.python.org/mailman/listinfo/python-list

Re: How to find the present working directory using python.

2007-05-04 Thread pradeep nair
On May 4, 12:05 pm, SamG <[EMAIL PROTECTED]> wrote: > On May 4, 12:03 pm, pradeep nair <[EMAIL PROTECTED]> wrote: > > > how to find out the present working directory using python. > > > os.system('pwd') works good. But i need some specific on