From dfa886775fc05fb92130ddfe8a252655d7ccf18d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=80=9D=E5=B7=9D?= Date: Thu, 16 Jun 2022 16:30:13 +0800 Subject: [PATCH] Changes --- Modules/Reports/ReportPathImpl.py | 3 +-- requirements.txt | 4 +++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Modules/Reports/ReportPathImpl.py b/Modules/Reports/ReportPathImpl.py index f17e256..f1f1875 100644 --- a/Modules/Reports/ReportPathImpl.py +++ b/Modules/Reports/ReportPathImpl.py @@ -1,10 +1,9 @@ import os -APP_NAME = 'guarantee-admin-api-v0.2' def get_project_abs_path(): 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 diff --git a/requirements.txt b/requirements.txt index 0028e34..3bbb67f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -11,4 +11,6 @@ pycryptodome xlrd~=1.2.0 Werkzeug~=2.1.2 cpca~=0.5.5 -PyYAML~=6.0 \ No newline at end of file +PyYAML~=6.0 +numpy~=1.22.4 +reportlab~=3.6.10 \ No newline at end of file