-
Notifications
You must be signed in to change notification settings - Fork 25
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 environment PATH pollution by CGrpc servers #1590
Conversation
Signed-off-by: paul.profizi <paul.profizi@ansys.com>
…ry.get_server_type_from_config Signed-off-by: paul.profizi <paul.profizi@ansys.com>
Signed-off-by: paul.profizi <paul.profizi@ansys.com>
src/ansys/dpf/core/server_factory.py
Outdated
if ansys_path is not None: | ||
sub_folders = os.path.join(ansys_path, _get_path_in_install()) | ||
os.environ["PATH"] += sub_folders | ||
# if ansys_path is None: |
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.
what was that for?
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.
This has been added when we switched to ansys.dpf.gate
. Apparently adding the path to GrpcClient.dll
. Not required today.
Signed-off-by: paul.profizi <paul.profizi@ansys.com>
Signed-off-by: paul.profizi <paul.profizi@ansys.com>
Signed-off-by: paul.profizi <paul.profizi@ansys.com>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1590 +/- ##
==========================================
+ Coverage 80.12% 85.34% +5.22%
==========================================
Files 82 82
Lines 9671 9670 -1
==========================================
+ Hits 7749 8253 +504
+ Misses 1922 1417 -505 |
Signed-off-by: paul.profizi <paul.profizi@ansys.com>
Closes #1579