Source

hg-extdir / extdir.py

Full commit
1
2
3
4
5
6
7
8
9
'''Adds a directory to the extension search path

Simply put the extension in the folder containing your extra hg extensions
and dependencies. This extension will add its parent folder to sys.path,
making them appear to hg like built-in extensions.
'''

import os, sys
sys.path.append(os.path.dirname(__file__))