Skip to content

Commit b737195

Browse files
author
zhangjie
committed
change something
1 parent e782c9d commit b737195

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

wsgi.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import os
2+
import sys
3+
4+
basedir = os.path.abspath(os.path.dirname(__file__))
5+
6+
sys.path.append(basedir)
7+
# 添加virtualenv的模块目录到系统路径
8+
venv_path = os.path.join(basedir, 'venv', 'Lib', 'site-packages')
9+
sys.path.append(venv_path)
10+
11+
from api.static_file import *
12+
from api import app as application

0 commit comments

Comments
 (0)