Skip to content

Commit

Permalink
修改绝对路径写法
Browse files Browse the repository at this point in the history
  • Loading branch information
SomeBottle committed Jan 3, 2022
1 parent e94cb00 commit 29d5c24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

class Res:
def __init__(self) -> None:
self.f_path = path.dirname(__file__) # 当前程序运行所在的绝对目录
self.f_path = path.dirname(path.abspath(__file__)) # 当前程序运行所在的绝对目录
config_path = self.f_path+'/config.json'
ranking_path = self.f_path+'/ranking.json'
default_config = { # 默认配置文件
Expand Down

0 comments on commit 29d5c24

Please sign in to comment.