Skip to content

Commit

Permalink
优化初始化进程
Browse files Browse the repository at this point in the history
  • Loading branch information
kslz committed Mar 6, 2023
1 parent cdbffb7 commit 7eceba4
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,8 @@ temp
venv
logs
workspace
lib
lib
build
dist
imgs
*.spec
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,18 @@ GUI界面!

## 安装教程

### 运行编译好的exe文件











1. 克隆本项目

gitee:
Expand Down
9 changes: 9 additions & 0 deletions utils/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -639,6 +639,15 @@ def text_to_aishell3_like(text):


def read_ini_config(ini_path="conf/config.ini"):
if not os.path.exists(ini_path):
# 如果不存在,则创建一个默认配置文件
os.makedirs(os.path.dirname(ini_path), exist_ok=True)
info = """[program_configs]
default_workspace = .\workspace
"""
with open(ini_path, 'w') as f:
f.write(info)
config = ConfigParserWithFile()
config.read(ini_path)
global_obj.set_value("config", config)
Expand Down

0 comments on commit 7eceba4

Please sign in to comment.