> how to find out the present working directory using python.
>
Try this:
import os
os.getcwd()
It returns the current working directory.
Thanks,
- Isaac.
--
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 one in
> > python rather than embedding shell comma
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()
--
http://mail.python.org