Fix doc build failure due to SQLAlchemy changes. #6208

This commit is contained in:
Yogesh Mahajan 2023-08-17 14:00:56 +05:30 committed by GitHub
parent edd1783353
commit e2f32c0984
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

View File

@ -14,7 +14,7 @@ root = os.path.realpath(
if sys.path[0] != root:
sys.path.insert(0, root)
import config
from pgadmin.utils import PgAdminModule
target = open('code_snippets.rst', 'w')

View File

@ -48,7 +48,12 @@ for index, req in enumerate(all_requires):
requires.append(req)
# Get the version
config = load_source('APP_VERSION', '../web/config.py')
path = '../web/'
if not os.path.exists(path):
print("ERROR: Could not find %s" % path)
sys.exit(1)
sys.path.append(path)
import config
setup(
name='pgadmin4',