A Mercurial extension which adds a directory to hg's sys.path. This is especially useful for hg users on Windows because it allows for installing extensions with binary dependencies. No more manual compilation of hg on Windows!
Create a new root folder for your extensions. Then, move extdir.py to that folder and add this to your Mercurial.ini:
[extensions] extdir = path/to/extdir.py
Make sure that extdir is the first extension in Mercurial.ini.
Now you can put other extensions into the same folder and install them as if they were built-in (without specifying a path). For example, let's see how we'd install hg-git, a really cool extension allowing you to pull/push Git repositories via Mercurial. You can download a compiled Windows version of hg-git (including a compiled dulwich package) in hg-extdir's downloads section. Unzip the file into your extdir folder and add it to Mercurial.ini:
[extensions] extdir = path/to/extdir.py hggit =
There you go. It's magical! :)