mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
Update index.py
This commit is contained in:
@@ -184,8 +184,9 @@ def getPythonName():
|
|||||||
return data[0].strip();
|
return data[0].strip();
|
||||||
|
|
||||||
def initPgConfFile():
|
def initPgConfFile():
|
||||||
|
pyname = getPythonName()
|
||||||
file_tpl = getPluginDir() + '/conf/config_local.py'
|
file_tpl = getPluginDir() + '/conf/config_local.py'
|
||||||
dst_file = getServerDir()+'/run/lib/python3.10/site-packages/pgadmin4/config_local.py'
|
dst_file = getServerDir()+'/run/lib/'+pyname+'/site-packages/pgadmin4/config_local.py'
|
||||||
if not os.path.exists(dst_file):
|
if not os.path.exists(dst_file):
|
||||||
service_path = mw.getServerDir()
|
service_path = mw.getServerDir()
|
||||||
content = mw.readFile(file_tpl)
|
content = mw.readFile(file_tpl)
|
||||||
|
|||||||
Reference in New Issue
Block a user