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

Add python path to conda env #1165

Merged
merged 2 commits into from
Mar 12, 2024
Merged

Add python path to conda env #1165

merged 2 commits into from
Mar 12, 2024

Conversation

ArtoLord
Copy link
Collaborator

No description provided.

@ArtoLord ArtoLord requested a review from imakunin March 11, 2024 14:25
return;
}

var path = IOUtils.toString(proc.out(), Charset.defaultCharset());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

path is empty string if $PYTHONPATH is not set


if (pythonPath != null) {
// Adding export here to prevent conda from updating PYTHONPATH
cmd = "export PYTHONPATH=" + pythonPath + " && " + cmd;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why don't you add this env var to the envList?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because conda can change this variable after activation

@ArtoLord ArtoLord requested a review from imakunin March 12, 2024 10:08
@ArtoLord ArtoLord merged commit 695ab20 into master Mar 12, 2024
7 checks passed
@ArtoLord ArtoLord deleted the add-pythonpath-to-conda-env branch March 12, 2024 11:43
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.

None yet

2 participants