Path fun on Windows
Eduard-Cristian Stefan
alexandrul.ct at gmail.com
Wed Jun 6 06:35:20 CDT 2012
On Wed, Jun 6, 2012 at 12:54 PM, Adrian Buehlmann <adrian at cadifra.com> wrote:
> Now, we have to look at where the path
>
> 'c:\\users\\adi\\appdata\\local\\temp\\hgtests.zf5gag\\test-a.t'
>
> is coming from. It comes from run-tests.py
>
> 1249 tmpdir = tempfile.mkdtemp('', 'hgtests.')
>
> which uses Python's mkdtemp() function of the tempfile Python standard
> library module.
The case can be restored with win32api, if it's available [1]:
win32api.GetLongPathNameW(win32api.GetShortPathName(path))
[1] http://stackoverflow.com/a/7622476/19756
More information about the Mercurial-devel
mailing list