diff --git a/plugins/postgresql/class/pg.py b/plugins/postgresql/class/pg.py index 4c0f7a127..0bf3b5bef 100755 --- a/plugins/postgresql/class/pg.py +++ b/plugins/postgresql/class/pg.py @@ -7,8 +7,12 @@ import sys import psycopg2 -sys.path.append(os.getcwd() + "/class/core") -import mw +web_dir = os.getcwd() + "/web" +if os.path.exists(web_dir): + sys.path.append(web_dir) + os.chdir(web_dir) + +import core.mw as mw class ORM: