-
Notifications
You must be signed in to change notification settings - Fork 636
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
8150: DYN-8176: Fixes from PythonNet3 #15774
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See the ticket for this pull request: https://jira.autodesk.com/browse/DYN-8150
@@ -642,7 +641,6 @@ public void VerifySysPathValueForCPythonEngine() | |||
var pynode = nodeModel as PythonNode; | |||
UpdatePythonEngineAndRun(pynode, PythonEngineManager.CPython3EngineName); | |||
sysPathList = GetFlattenedPreviewValues(secondPythonNodeGUID); | |||
Assert.AreEqual(sysPathList.Count(), 3); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We now can't be certain of the exact number of paths. But it should be enough (as we are doing) to check that the custom path is visible in the first node and not in the second.
UI Smoke TestsTest: success. 11 passed, 0 failed. |
Purpose
Apply a few fixes from PythonNet3 work to CPython3:
path
handling. Currently we just chop off all but the first three path entries. This PR caches the path before all Python nodes run and uses the cached path for each run. This will fix, for example, the issue wheresite-packages
isn't on the path (If site-packages folder is present the default Python path has 4 items).Declarations
Check these if you believe they are true
*.resx
filesRelease Notes
Preserve full original Python path on each Python node run.
Reviewers
(FILL ME IN) Reviewer 1 (If possible, assign the Reviewer for the PR)
(FILL ME IN, optional) Any additional notes to reviewers or testers.
FYIs
(FILL ME IN, Optional) Names of anyone else you wish to be notified of