modified: Evaluate_Result/admin_example_1.xlsx modified: Evaluate_Result/admin_example_2.xlsx new file: __pycache__/compareData.cpython-313.pyc new file: __pycache__/config.cpython-313.pyc new file: __pycache__/getDataFromAS.cpython-313.pyc new file: __pycache__/getQueries.cpython-313.pyc modified: app.py new file: build/Compare-PBI-Data/Analysis-00.toc new file: build/Compare-PBI-Data/Compare-PBI-Data.pkg new file: build/Compare-PBI-Data/EXE-00.toc new file: build/Compare-PBI-Data/PKG-00.toc new file: build/Compare-PBI-Data/PYZ-00.pyz new file: build/Compare-PBI-Data/PYZ-00.toc new file: build/Compare-PBI-Data/base_library.zip new file: build/Compare-PBI-Data/generated-2c83337f9fff21d32f0901febbdb8eec9b843eb92a216cf8171391083f1c5046.ico new file: build/Compare-PBI-Data/localpycs/pyimod01_archive.pyc new file: build/Compare-PBI-Data/localpycs/pyimod02_importers.pyc new file: build/Compare-PBI-Data/localpycs/pyimod03_ctypes.pyc new file: build/Compare-PBI-Data/localpycs/pyimod04_pywin32.pyc new file: build/Compare-PBI-Data/localpycs/struct.pyc new file: build/Compare-PBI-Data/warn-Compare-PBI-Data.txt new file: build/Compare-PBI-Data/xref-Compare-PBI-Data.html new file: build_exe.py modified: config.py new file: dist/Compare-PBI-Data.exe new file: dist/Evaluate_Result/admin_example_1.xlsx new file: dist/Evaluate_Result/admin_example_2.xlsx new file: dist/Export_Json/example.json modified: getDataFromAS.py modified: getQueries.py new file: icon.jpg modified: requirements.txt deleted: run.py modified: templates/index.html
58 lines
2.3 KiB
Python
58 lines
2.3 KiB
Python
import os
|
||
|
||
# 获取当前文件所在的文件夹路径
|
||
CURRENT_DIR_PATH = os.path.dirname(os.path.abspath(__file__))
|
||
CURRENT_DIR_PATH_NET = os.path.dirname(os.path.abspath(__file__))
|
||
# MS.NET包的路径
|
||
NET_FOLDER = "MS.NET_Package"
|
||
|
||
# --------------------------------------------------------------
|
||
# ------------------------请填写以下信息-------------------------
|
||
# --------------------------------------------------------------
|
||
|
||
# 连接信息
|
||
### 第一个Analysis Services的连接信息
|
||
WORKSPACE_1 = "localhost:9088"
|
||
USERNAME_1 = "xxxx"
|
||
PASSWORD_1 = "xxxx"
|
||
CATALOG_1 = None
|
||
### 第二个Analysis Services的连接信息
|
||
WORKSPACE_2 = "localhost:9088"
|
||
USERNAME_2 = "xxxx"
|
||
PASSWORD_2 = "xxxx"
|
||
CATALOG_2 = None
|
||
|
||
# 导出页面查询的json文件的名称
|
||
EXPORT_PAGE_JSON_NAME_1 = "example"
|
||
EXPORT_PAGE_JSON_NAME_2 = "example"
|
||
|
||
# 是否是管理员方式运行,如果是,则为True,否则为False
|
||
IS_ADMIN_1 = True
|
||
IS_ADMIN_2 = True
|
||
# 自定义数据和角色
|
||
### 如果定义IS_ADMIN为False,则需要填写以下信息
|
||
### EFFECTIVE_USERNAME和CUSTOMER_DATA都填写只有一个生效,如果不需要生效的请填写None。
|
||
### 如果都填写,优先生效的顺序为: EFFECTIVE_USERNAME -> CUSTOMER_DATA
|
||
|
||
### 第一个Analysis Services的自定义数据和角色
|
||
ROLE_1 = "1"
|
||
EFFECTIVE_USERNAME_1 = None
|
||
CUSTOMER_DATA_1 = "1"
|
||
### 第二个Analysis Services的自定义数据和角色
|
||
ROLE_2 = "2"
|
||
EFFECTIVE_USERNAME_2 = None
|
||
CUSTOMER_DATA_2 = "2"
|
||
|
||
# --------------------------------------------------------------
|
||
# ------------------------请填写以上信息-------------------------
|
||
# --------------------------------------------------------------
|
||
|
||
desc_WORKSPACE = "Analysis Services的连接信息,如果是powerbi,则连接字符串中包含catalog"
|
||
desc_USERNAME = "用户名 (如果是powerbi,则为邮箱,如果是AS,则为用户名或不填写)"
|
||
desc_PASSWORD = "密码"
|
||
desc_CATALOG = "如果是powerbi,则必填且catalog为语义模型的名称,默认为None"
|
||
desc_EXPORT_PAGE_JSON_NAME = "导出页面查询的json文件的名称"
|
||
desc_IS_ADMIN = "是否是管理员方式运行,如果是,则为True,否则为False"
|
||
desc_ROLE = "角色名称。如果ADMIN为True,则不填,否则必填"
|
||
desc_EFFECTIVE_USERNAME = "username()获取字段"
|
||
desc_CUSTOMER_DATA = "customerdata()获取字段" |