Update pg.py

This commit is contained in:
dami 2025-04-09 11:41:01 +08:00
parent 85da840688
commit 897e54cb86
1 changed files with 6 additions and 2 deletions

View File

@ -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: