Comment 2 for bug 1522553

Revision history for this message
Ramy Asselin (ramy-asselin) wrote :

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