brain-score / sample-model-submission

Template and examples for model submissions to Brain-Score
6 stars 12 forks source link

running locally will not be able to import test without adjust PYTHONPATH #4

Open mschrimpf opened 4 years ago

mschrimpf commented 4 years ago

if we just run python models/base_models.py, it will try to from test import test_models. By default, python sets the PYTHONPATH to the directory of the main script it's running, i.e. in this case models which doesn't let it find the test module.

I believe in the submission, we take care of this by running with PYTHONPATH=. python models/base_models.py, but we should also let users know how to get this running locally