I want to work with the mercurial repository of hg
itself. That is, I cloned Mercurial from https://www.mercurial-scm.org/repo/hg and want to run some hg
commands inside the cloned repository. The problem is that when running hg
inside this clone hg
executable tries to load its python modules from this directory and not from /usr/lib/pythonVERSION
etc. As I understand it this happens because Python import path sys.path
contains an empty string as first entry which probably means "current directory". PYTHONPATH
environment variable is not set.
The questtion is how can I prevent my installed hg
from importing "wrong" modules.
sys.path.insert(0,"/usr/lib/pythonVERSION")
? – Padraic Cunninghamhg
script. – ragol