I want to submit a pull request to a library (imblearn
, v.0.3.0) that is included in my python distribution (anaconda 4.3.14) by default. Before submitting, I want to to test my cloned repo. Therefore, I need to reload the module from a different location (cloned repo), instead of same the default location like described here.
Adding the location to the path as first element does not work:
>>> import sys
>>> sys.path.insert(0, 'C:\\my repositories\\imbalanced-learn\\imblearn')
printing the version still gives the result from the version.py
in the anaconda folder
>>> from imblearn import version
>>> version.__version__
'0.3.0.dev0'
Is there a non hacky way ?