mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #4132 from ethereum/useAbsPathInLexerImport
Do not depend on where build is run.
This commit is contained in:
commit
8c261e73a5
@ -22,7 +22,8 @@ import re
|
|||||||
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
||||||
|
|
||||||
def setup(sphinx):
|
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
|
from SolidityLexer import SolidityLexer
|
||||||
sphinx.add_lexer('Solidity', SolidityLexer())
|
sphinx.add_lexer('Solidity', SolidityLexer())
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user