mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-01-24 07:16:52 -06:00
Ensure builtins.SERVER_MODE is present so the docs build cleanly.
This commit is contained in:
parent
f195b18f2d
commit
0e5ea58294
@ -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__)
|
||||
|
@ -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/')
|
||||
|
Loading…
Reference in New Issue
Block a user