If you want a short path name, you should use win32api.GetShortPathName().
Attempting to compute it yourself isn’t as straight forward as you think.
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Hartwell Bryan
Sent: 27 May 2008 08:00
To: python-dev@python.org
Subject: [Python-De
Hartwell Bryan wrote:
Hi,
Purpose: obtaining the system (“short”) path from a full path
Background: File dialogs (visual studio) return a full path (e.g.
f=“C:\this path has spaces\thisfilenameislongerthan8char.txt”). If
this value is provided to Python, it will not recongize this as a
file
On Tue, May 27, 2008 at 6:00 AM, Hartwell Bryan <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Purpose: obtaining the system ("short") path from a full path
>
Best thing to do is to open an issue with the patch, otherwise this
will just be ignored as we don't accept code to this mailing list.
-Brett
__