update-sourcecode appends rather than prepends 'lib' to sys.path

Bug #790560 reported by Jelmer Vernooij
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Undecided
Jelmer Vernooij

Bug Description

update-sourcecode appends rather than prepends 'lib' to sys.path. It then tries to import from 'devscripts', but newer versions of the "devscripts" Ubuntu package also include a devscripts package which is then used instead.

I'll submit a MP that simply changes sys.path.append to sys.path.insert in update-sourcecode.

Related branches

Jelmer Vernooij (jelmer)
Changed in launchpad:
status: New → In Progress
assignee: nobody → Jelmer Vernooij (jelmer)
Revision history for this message
Gavin Panella (allenap) wrote :

In the longer term we should probably rename Launchpad's devscripts, perhaps to lp.dev or something like that.

Revision history for this message
Jonathan Lange (jml) wrote : Re: [Bug 790560] Re: update-sourcecode appends rather than prepends 'lib' to sys.path

On Tue, May 31, 2011 at 11:21 AM, Gavin Panella
<email address hidden> wrote:
> In the longer term we should probably rename Launchpad's devscripts,
> perhaps to lp.dev or something like that.
>

FWIW, it was a deliberate choice to keep devscripts importable but out
of the 'lp', since they have nothing to do with Launchpad the
application.

(Which, of course, doesn't mean that it wasn't a mistake)

Revision history for this message
Launchpad QA Bot (lpqabot) wrote :
tags: added: qa-needstesting
Changed in launchpad:
status: In Progress → Fix Committed
Jelmer Vernooij (jelmer)
tags: added: qa-untestable
removed: qa-needstesting
William Grant (wgrant)
Changed in launchpad:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers