Kaydet (Commit) 85f48e3b authored tarafından Martin v. Löwis's avatar Martin v. Löwis

Convert path objects to strings in askdirectory. Fixes #852314.

Backported to 2.3.
üst 3375fc5a
......@@ -105,6 +105,12 @@ class Directory(Dialog):
def _fixresult(self, widget, result):
if result:
# convert Tcl path objects to strings
try:
result = result.string
except AttributeError:
# it already is a string
pass
# keep directory until next time
self.options["initialdir"] = result
self.directory = result # compatibility
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment