Ensure builtins.SERVER_MODE is present so the docs build cleanly.

This commit is contained in:
Dave Page 2017-08-25 11:19:27 +01:00
parent f195b18f2d
commit 0e5ea58294
2 changed files with 16 additions and 0 deletions

View File

@ -2,6 +2,14 @@ import os
import sys
import inspect
if sys.version_info[0] >= 3:
import builtins
else:
import __builtin__ as builtins
# Ensure the global server mode is set.
builtins.SERVER_MODE = None
root = os.path.realpath(
os.path.dirname(
os.path.realpath(__file__)

View File

@ -13,6 +13,14 @@
import sys, os
if sys.version_info[0] >= 3:
import builtins
else:
import __builtin__ as builtins
# Ensure the global server mode is set.
builtins.SERVER_MODE = None
# Import the pgAdmin config
root = os.path.dirname(os.path.realpath(__file__))
sys.path.insert(0, root + '/../../web/')