Better workaround:
import sys sys.path.insert(0, '/usr/lib/python2.7')
For some reason the system level package is at the end of the sys.path. the first entry is '/home/asselin/git/elastic-recheck/elastic_recheck/tests/unit'
Not sure why that's happening. Doc says system path should be first [1]
[1] https://docs.python.org/2/tutorial/modules.html#the-module-search-path
Better workaround:
import sys python2. 7')
sys.path.insert(0, '/usr/lib/
For some reason the system level package is at the end of the sys.path. asselin/ git/elastic- recheck/ elastic_ recheck/ tests/unit'
the first entry is '/home/
Not sure why that's happening. Doc says system path should be first [1]
[1] https:/ /docs.python. org/2/tutorial/ modules. html#the- module- search- path