This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Grant Hillebrand
Recipients Grant Hillebrand, paul.moore, steve.dower, tim.golden, zach.ware
Date 2016-07-25.17:37:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1469468238.61.0.474363149897.issue27616@psf.upfronthosting.co.za>
In-reply-to
Content
When running the following code on Windows 7 (64bit os), and selecting a root drive letter, eg C:, it returns "C:/", with a slash appended. When selecting any other path below root level, eg "C:/users" it returns "C:/users" - no slash appended. 
This then introduces an odd edge case in processing the output if the path is to be prepended to directory walk data and other file names.

Python 3.5.2 (v3.5.2:4def2a2901a5, Jun 25 2016, 22:18:55) [MSC v.1900 64 bit (AMD64)] on win32

>>> from tkinter import filedialog
>>> SourcePath = filedialog.askdirectory()
>>> print(SourcePath)
C:/
>>> SourcePath = filedialog.askdirectory()
>>> print(SourcePath)
C:/NVIDIA
>>>
History
Date User Action Args
2016-07-25 17:37:18Grant Hillebrandsetrecipients: + Grant Hillebrand, paul.moore, tim.golden, zach.ware, steve.dower
2016-07-25 17:37:18Grant Hillebrandsetmessageid: <1469468238.61.0.474363149897.issue27616@psf.upfronthosting.co.za>
2016-07-25 17:37:18Grant Hillebrandlinkissue27616 messages
2016-07-25 17:37:18Grant Hillebrandcreate