Adding the directory containing 'config.py' in to the sys.path variable,
so that - when config.py refered from outside the pgAdmin itself (i.e. during building the pip).pull/3/head REL-1_3
parent
1f9fd507b0
commit
41e0a73ea6
|
|
@ -12,6 +12,15 @@
|
|||
##########################################################################
|
||||
|
||||
import os
|
||||
import sys
|
||||
|
||||
|
||||
# We need to include the root directory in sys.path to ensure that we can
|
||||
# find everything we need when running in the standalone runtime.
|
||||
root = os.path.dirname(os.path.realpath(__file__))
|
||||
if sys.path[0] != root:
|
||||
sys.path.insert(0, root)
|
||||
|
||||
from pgadmin.utils import env, IS_PY2, IS_WIN, fs_short_path
|
||||
|
||||
##########################################################################
|
||||
|
|
|
|||
Loading…
Reference in New Issue