How to get inputs for a python program that run from another python program
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 if __name__=='__main__': print "press ENTER to display" #code wer if the user hits enter print "hello" #else the user hits any other keyboard button: sys.exit() now wen i run hello1.py,i want the some function or utility in hello1.py that can pass the keyboard i/p to hello.py . -- http://mail.python.org/mailman/listinfo/python-list
how to find the OS name..??
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
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
On May 3, 11:27 am, kaens <[EMAIL PROTECTED]> wrote: > do YOU mean hit "reply to all" not "reply?" > > On 5/3/07, kaens <[EMAIL PROTECTED]> wrote: > > > do you mean > > filelst.append(i)? > > > On 5/3/07, rishi pathak <[EMAIL PROTECTED]> wrote: > > > May be this would work > > > import os > > > grep="so" > > > dir="." > > > lst = os.listdir(dir) > > > filelst=[] > > > for i in lst: > > > if i.split(".")[len(i.split("."))-1] == grep: > > > lst.append(i) > > > print lst > > > > On 2 May 2007 21:58:41 -0700, pradeep nair <[EMAIL PROTECTED]> wrote: > > > > HI, > > > > > How do i find files with .so extension using python . > > > > > -- > > > >http://mail.python.org/mailman/listinfo/python-list > > > > -- > > > Regards-- > > > Rishi Pathak > > > National PARAM Supercomputing Facility > > > Center for Development of Advanced Computing(C-DAC) > > > Pune University Campus,Ganesh Khind Road > > > Pune-Maharastra > > > -- > > >http://mail.python.org/mailman/listinfo/python-list -- http://mail.python.org/mailman/listinfo/python-list
How to find the present working directory using python.
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.
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 one in > > python rather than embedding shell command into python. > > os.path.getcwd() Thank u... -- http://mail.python.org/mailman/listinfo/python-list