Skip to content

Commit

Permalink
配置文件路径改为脚本同目录
Browse files Browse the repository at this point in the history
  • Loading branch information
imldy committed Oct 9, 2021
1 parent 4dbdb1e commit b5310e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gwa.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ def cycle():


if __name__ == '__main__':
conf_file = open("conf.txt", encoding="utf-8")
conf_file = open("{}conf.txt".format(sys.path[0] + "/"), encoding="utf-8")
conf = conf_file.read().strip().split("\n")
account = Account(conf[0].strip(), conf[1].strip())
client = Client()
Expand Down

0 comments on commit b5310e0

Please sign in to comment.