Trimming of file path hides filename

Bug #373316 reported by Dougal
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Virtualenv
New
Undecided
Jannis Leidel

Bug Description

At like 430 the filename is trimmed if it is more than 40 characters. The problem with this is it takes the first 30 chars and the last 5, so typically you miss out the more useful piece of information - the file name and get the location and the extension.

The code that does this is;
            part = part[:30]+"..."+part[-5:]

it could be simply changed to show more of the end and less or the start probably. I found this in version 1.3.3

It makes errors like this very hard to know what file it is talking about;

OSError: Command C:\PINAX-~1\_PINAX~1\Scripts\e...l.exe --quiet --always-copy --always-unzip --find-links http://pypi.pi
naxproject.com C:\pinax-sprint\_pinax-0.7beta...1.zip failed with error code 1

*edit*
I have a fork on github with this change.http://bitbucket.org/d0ugal/virtualenv/changesets/

Dougal (dougal85)
description: updated
Jannis Leidel (jezdez)
Changed in virtualenv:
assignee: nobody → Jannis Leidel (jezdez)
Revision history for this message
Carl Meyer (carljm) wrote :

Fixed in https://github.com/pypa/virtualenv/commit/9a9d125d42318cf922318d939b98b7505496ca92

Not porting this to new issue tracker at github.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.