fix: 解决文件路径读取错误的问题;解决读取token时自带换行符的问题
This commit is contained in:
@ -1,7 +1,9 @@
|
||||
import yaml
|
||||
import os
|
||||
|
||||
def loadYaml(path):
|
||||
file = open(path, encoding='utf-8')
|
||||
currentPath = os.path.dirname(__file__)
|
||||
file = open(os.path.join(currentPath, path), encoding='utf-8')
|
||||
configData = file.read()
|
||||
file.close()
|
||||
|
||||
|
Reference in New Issue
Block a user