diff options
Diffstat (limited to 'doc-src')
-rw-r--r-- | doc-src/config.html | 6 | ||||
-rw-r--r-- | doc-src/index.py | 7 |
2 files changed, 5 insertions, 8 deletions
diff --git a/doc-src/config.html b/doc-src/config.html index 60404449..46688575 100644 --- a/doc-src/config.html +++ b/doc-src/config.html @@ -84,9 +84,3 @@ palette = light </pre> - - - - - - diff --git a/doc-src/index.py b/doc-src/index.py index f3d3ed3b..753f90a5 100644 --- a/doc-src/index.py +++ b/doc-src/index.py @@ -4,10 +4,13 @@ import datetime import countershape from countershape import Page, Directory, markup, model import countershape.template -sys.path.insert(0, "..") + +MITMPROXY_SRC = os.path.abspath( + os.path.expanduser(os.environ.get("MITMPROXY_SRC", "..")) +) +sys.path.insert(0, MITMPROXY_SRC) from libmproxy import filt, version -MITMPROXY_SRC = os.environ.get("MITMPROXY_SRC", os.path.abspath("..")) ns.VERSION = version.VERSION if ns.options.website: |