[issue27616] filedialog.askdirectory inconsistent on Windows between returning "C:/" and "C:/users" (no trailing slash)

2016-07-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: "C:" is current directory on drive C, "C:/" is root directory on drive C. This is not related to Python or Tk, this is how paths work. Use os.path or pathlib for processing paths. -- nosy: +serhiy.storchaka resolution: -> not a bug stage: ->

[issue27616] filedialog.askdirectory inconsistent on Windows between returning "C:/" and "C:/users" (no trailing slash)

2016-07-25 Thread Grant Hillebrand
New submission from Grant Hillebrand: 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