MCPcopy Create free account
hub / github.com/McGill-NLP/length-generalization / add_python_paths

Function add_python_paths

scripts/create_run_script.py:7–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5
6
7def add_python_paths():
8 script = (
9 "\n\nexport PYTHONPATH=$HOME/.local/lib/python3.6/site-packages/:$PYTHONPATH\n"
10 )
11 script += (
12 "export PYTHONPATH=$HOME/.local/lib/python3.7/site-packages/:$PYTHONPATH\n"
13 )
14 script += (
15 "export PYTHONPATH=$HOME/.local/lib/python3.8/site-packages/:$PYTHONPATH\n"
16 )
17 script += (
18 "export PYTHONPATH=$HOME/.local/lib/python3.9/site-packages/:$PYTHONPATH\n"
19 )
20 script += "\n\n#pip install --user -r src/requirements.txt\n"
21 return script
22
23
24def make_executable(script_path):

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected