Skip to content
Snippets Groups Projects
Verified Commit 5f7c9666 authored by Olivier Benz's avatar Olivier Benz
Browse files

IPython: Append the user's modular bin dir to PATH

parent c95d8ea1
No related branches found
No related tags found
No related merge requests found
......@@ -22,3 +22,14 @@ if (
+ os.pathsep
+ os.getenv("PATH", "")
)
if (
os.path.exists(os.path.join(os.environ["HOME"], ".modular", "bin"))
and not os.path.join(os.environ["HOME"], ".modular", "bin")
in os.getenv("PATH", "")
):
os.environ["PATH"] = (
os.getenv("PATH", "")
+ os.pathsep
+ os.path.join(os.environ["HOME"], ".modular", "bin")
)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment