diff --git a/Documentation/sphinx/load_config.py b/Documentation/sphinx/load_config.py index eeb394b39e2c..bc45424a406f 100644 --- a/Documentation/sphinx/load_config.py +++ b/Documentation/sphinx/load_config.py @@ -3,7 +3,12 @@ import os import sys -from sphinx.util.pycompat import execfile_ + +def execfile_(filepath, _globals): + with open(filepath, 'rb') as f: + source = f.read() + code = compile(source, filepath, 'exec') + exec(code, _globals) # ------------------------------------------------------------------------------ def loadConfig(namespace):