psathyrella / partis

B- and T-cell receptor sequence annotation, simulation, clonal family and germline inference, and affinity prediction
GNU General Public License v3.0
55 stars 34 forks source link

package import paths #183

Closed namita1025 closed 8 years ago

namita1025 commented 8 years ago

I noticed that if I try to run partis while not in the directory, it complains about finding packages it needs to import. Are the paths to these hard-coded to be relative to current working directory? Is there a way to change that?

psathyrella commented 8 years ago

yeah, in effect. The imports are handled with sys.path.insert(1, './python'). I'll poke around to see what's the best way to handle that. All I remember is I didn't like how was handled in a lot of cases, but clearly you should be able to run anywhere you like.

In the meantime, though, you can add export PYTHONPATH=/path/to/partis/python to your env.