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

Fix rez-python arg disordered #1041

Merged
merged 1 commit into from
Mar 30, 2021

Conversation

davidlatwe
Copy link
Contributor

Problem

When I run command

> rez-python -m pip list

It shows

Scripts\python.exe: No module named list

Which is weird since the module arg should be pip, so I print out the args that parsed into python.exe and it shows :

['scripts\python.exe', '-E', '-m', 'list', 'pip']

As you can see, pip has been parsed as FILE arg and then appended behind other args that are unrecognized by the rez-python arg-parser.

Fix

Instead of rearranging arguments by what are recognized and what not, just pass them all directly into python executable. Since it looks like we only need parser to run script file auto-completion.

@davidlatwe davidlatwe mentioned this pull request Mar 16, 2021
@nerdvegas nerdvegas merged commit 7b75a86 into AcademySoftwareFoundation:master Mar 30, 2021
@davidlatwe davidlatwe deleted the rez-python branch March 30, 2021 03:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants