tkinter, askopenfilename, initial directory

Lisa Frauens frauens at hotmail.com
Thu Aug 7 18:08:56 EDT 2008


I see there is an initial directory option in askopenfilename.  However, I want the initial directory to be the last directory used in a prior execution of my script.  Is there a way to force the askopenfilename to the previous initial directory easily using information somewhere (I know Windows applications natively do this so you don't have to navigate all the way back to directory of interest)?  It defaults to the current working directory. or do I have to save this initial directory somewhere, probably in a *.txt file,  when running my script the first time and then access this *.txt file, and use information as the initial directory option in askopenfilename, when running the script a subsequent time?
_________________________________________________________________
Get more from your digital life.  Find out how.
http://www.windowslive.com/default.html?ocid=TXT_TAGLM_WL_Home2_082008
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20080807/0029860b/attachment.html>


More information about the Python-list mailing list