aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2014-01-19 13:52:45 +1300
committerAldo Cortesi <aldo@nullcube.com>2014-01-19 13:52:45 +1300
commit64be9b1a8a695f253dfcf2188ce303791d451bfa (patch)
tree096a7b71603dd7d5fa4fd1721366dbfd2cc59e71
parentbd684d4540b196a215e026ee1773350421fbf85c (diff)
downloadmitmproxy-64be9b1a8a695f253dfcf2188ce303791d451bfa.tar.gz
mitmproxy-64be9b1a8a695f253dfcf2188ce303791d451bfa.tar.bz2
mitmproxy-64be9b1a8a695f253dfcf2188ce303791d451bfa.zip
Optionally take the mitmproxy path for doc rendering from a env variable.
-rw-r--r--doc-src/index.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc-src/index.py b/doc-src/index.py
index e62c1709..8f18e714 100644
--- a/doc-src/index.py
+++ b/doc-src/index.py
@@ -5,7 +5,7 @@ import countershape.template
sys.path.insert(0, "..")
from libmproxy import filt, version
-MITMPROXY_SRC = os.path.abspath("..")
+MITMPROXY_SRC = os.environ.get("MITMPROXY_SRC", os.path.abspath(".."))
ns.VERSION = version.VERSION
if ns.options.website: