mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-03 12:10:55 -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 sys
|
||||||
import inspect
|
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(
|
root = os.path.realpath(
|
||||||
os.path.dirname(
|
os.path.dirname(
|
||||||
os.path.realpath(__file__)
|
os.path.realpath(__file__)
|
||||||
|
@ -13,6 +13,14 @@
|
|||||||
|
|
||||||
import sys, os
|
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
|
# Import the pgAdmin config
|
||||||
root = os.path.dirname(os.path.realpath(__file__))
|
root = os.path.dirname(os.path.realpath(__file__))
|
||||||
sys.path.insert(0, root + '/../../web/')
|
sys.path.insert(0, root + '/../../web/')
|
||||||
|
Loading…
Reference in New Issue
Block a user