aboutsummaryrefslogtreecommitdiffstats
path: root/doc-src/index.py
diff options
context:
space:
mode:
Diffstat (limited to 'doc-src/index.py')
-rw-r--r--doc-src/index.py7
1 files changed, 5 insertions, 2 deletions
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: