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

Function add_python_paths

scripts/upload_experiment.py:122–136  ·  view source on GitHub ↗
(script)

Source from the content-addressed store, hash-verified

120
121
122def add_python_paths(script):
123 script += (
124 "\n\nexport PYTHONPATH=$HOME/.local/lib/python3.6/site-packages/:$PYTHONPATH\n"
125 )
126 script += (
127 "export PYTHONPATH=$HOME/.local/lib/python3.7/site-packages/:$PYTHONPATH\n"
128 )
129 script += (
130 "export PYTHONPATH=$HOME/.local/lib/python3.8/site-packages/:$PYTHONPATH\n"
131 )
132 script += (
133 "export PYTHONPATH=$HOME/.local/lib/python3.9/site-packages/:$PYTHONPATH\n"
134 )
135 script += "\n\n#pip install --user -r src/requirements.txt\n"
136 return script
137
138
139def make_run_script_seeds(

Callers 4

make_run_scriptFunction · 0.70
make_run_script_seedsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected