From 2d07ee8ceb238cc314095f6e6d03007e338f30cc Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Sun, 12 Aug 2012 01:45:20 -0400 Subject: [PATCH] It seems site.addsitedir() sticks this at the end; we want it first. --- build.py | 1 + 1 file changed, 1 insertion(+) diff --git a/build.py b/build.py index 2971feb..e293c7e 100755 --- a/build.py +++ b/build.py @@ -19,6 +19,7 @@ if plat.startswith("sunos"): elif plat.startswith("linux"): plat = "linux" site.addsitedir(os.path.expanduser("~/.local/" + plat + "/lib/python2.7/site-packages")) +sys.path.insert(0, os.path.expanduser("~/.local/" + plat + "/lib/python2.7/site-packages")) sys.path.insert(0, ".") from mako.template import Template