This commit is contained in:
王思川 2022-06-16 16:30:13 +08:00
parent 400f3fb4ff
commit dfa886775f
2 changed files with 4 additions and 3 deletions

View File

@ -1,10 +1,9 @@
import os import os
APP_NAME = 'guarantee-admin-api-v0.2'
def get_project_abs_path(): def get_project_abs_path():
file_abs_path = os.path.abspath(os.path.dirname(__file__)) file_abs_path = os.path.abspath(os.path.dirname(__file__))
project_abs_path = file_abs_path[:file_abs_path.find(APP_NAME)+len(APP_NAME)] project_abs_path = file_abs_path[:file_abs_path.find("Modules")]
return project_abs_path return project_abs_path

View File

@ -11,4 +11,6 @@ pycryptodome
xlrd~=1.2.0 xlrd~=1.2.0
Werkzeug~=2.1.2 Werkzeug~=2.1.2
cpca~=0.5.5 cpca~=0.5.5
PyYAML~=6.0 PyYAML~=6.0
numpy~=1.22.4
reportlab~=3.6.10