Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pyvsc-run-isolated.py removes ALL items from path! #16295

Closed
p-baum opened this issue May 21, 2021 · 1 comment
Closed

pyvsc-run-isolated.py removes ALL items from path! #16295

p-baum opened this issue May 21, 2021 · 1 comment
Assignees

Comments

@p-baum
Copy link

p-baum commented May 21, 2021

I dont know why but changing the following line from:

sys.path[:] = (p for p in sys.path if p != "" and normalize(p) != cwd)

to use list comprehension like so:

sys.path[:] = [p for p in sys.path if p != "" and normalize(p) != cwd]

produces the desired behaviour.

@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label May 21, 2021
@karrtikr karrtikr self-assigned this May 24, 2021
@karrtikr karrtikr added triage and removed triage-needed Needs assignment to the proper sub-team labels May 24, 2021
@karrtikr
Copy link

karrtikr commented May 24, 2021

Should be fixed with #16274

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 22, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants