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 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
HI,
How do i find files with .so extension using python .
--
http://mail.python.org/mailman/listinfo/python-list
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 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
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