Another easy pair of questions

kyosohma at gmail.com kyosohma at gmail.com
Tue May 8 17:19:41 EDT 2007


On May 8, 4:12 pm, "Martin v. Löwis" <mar... at v.loewis.de> wrote:
> > In a python Tk shell in Windows, what is the equivalent of unix's pwd?
>
> os.getcwd()
>
> > In a python Tk shell in Windows, is there an easy way to reoeat an
> > earlier command, similar to Tcl/Tk's hist?
>
> Press the cursor-up key.
>
> Martin

Lots more information on getting path information can be found at this
recipe:

http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/474083

Mike




More information about the Python-list mailing list