Here's how to do it within a python script that uses the AvrilFastaUtils.py module:
# prepend the path to the local version of AvrilFastaUtils.py to the PYTHONPATH
sys.path = ["/nfs/users/nfs_a/alc/Documents/git/helminth_scripts_python/lib"] + sys.path
# double-check that you've typed it correctly:
assert os.path.isdir(sys.path[0])
# now import the local version of the module:
import AvrilFastaUtils
Thanks to Noel O'Boyle for helping with this!
1 comment:
I have started using virtualenvs and it was revelation for problems like these. Also, I no longer need the sysadmin's magical sudo powers to install python packages. My post on this is
I have started using virtualenvs and it was revelation for problems like these. Also, I no longer need the sysadmin magical sudo powers to install python packages. My post on it is
here.
Post a Comment