aboutsummaryrefslogtreecommitdiffstats
path: root/docs/conf.py
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-05-15 03:59:13 +0800
committerchriseth <chris@ethereum.org>2018-05-15 03:59:35 +0800
commit2f4faef606bbad30fea4747b2ade845dada565b0 (patch)
treeeb68927472b2599375f75193453f3eed31b3e2e9 /docs/conf.py
parent7f97995e11ebfbbd76df4d792a358793ae5f9cc4 (diff)
downloaddexon-solidity-2f4faef606bbad30fea4747b2ade845dada565b0.tar
dexon-solidity-2f4faef606bbad30fea4747b2ade845dada565b0.tar.gz
dexon-solidity-2f4faef606bbad30fea4747b2ade845dada565b0.tar.bz2
dexon-solidity-2f4faef606bbad30fea4747b2ade845dada565b0.tar.lz
dexon-solidity-2f4faef606bbad30fea4747b2ade845dada565b0.tar.xz
dexon-solidity-2f4faef606bbad30fea4747b2ade845dada565b0.tar.zst
dexon-solidity-2f4faef606bbad30fea4747b2ade845dada565b0.zip
Do not depend on where build is run.
Diffstat (limited to 'docs/conf.py')
-rw-r--r--docs/conf.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/conf.py b/docs/conf.py
index 3bbee671..7e107f2a 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -22,7 +22,8 @@ import re
# documentation root, use os.path.abspath to make it absolute, like shown here.
def setup(sphinx):
- sys.path.insert(0, os.path.abspath('./utils'))
+ thisdir = os.path.dirname(os.path.realpath(__file__))
+ sys.path.insert(0, thisdir + '/utils')
from SolidityLexer import SolidityLexer
sphinx.add_lexer('Solidity', SolidityLexer())