Skip to content

CoverageScript.command_line wipes out 1st sys.path entry. #715

@jsirois

Description

@jsirois

This can be problematic if the coverage distribution itself is not the first item on the classpath:
https://github.com/nedbat/coveragepy/blob/401471c1c51c2a99b31b0508578d04b4da03eebb/coverage/cmdline.py#L468-L470

Is there any reason this couldn't be a sys.path.insert(0, '')?

I'm happy to do the work but I just wanted to run this by you first.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions