Skip to content
This repository was archived by the owner on Jul 17, 2024. It is now read-only.

Conversation

krishnan-r
Copy link
Contributor

for key, val in dict(os.environ).items():
if key == "SUDO_COMMAND":
continue
if key == "PYTHONPATH":
Copy link
Contributor

Choose a reason for hiding this comment

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

This env file is going to be used by the kernels as well, right? Please note that you're not setting the same environment as before. We removed this extra path from the file that is loaded from the terminal, but it is supposed to exist in the kernel (otherwise, the spark stuff will break).

import os, re
import json
def addEnv(dtext):
Copy link
Contributor

Choose a reason for hiding this comment

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

This code exists here to be able to retrieve the user environment. If you no longer need to get it and write it in the kernel.json file, I would move it to the logic where we set the kernels (when we copy them from cvmfs). It would be more logical to do everything together there.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants