Skip to content

Commit 29d5c24

Browse files
committed
修改绝对路径写法
1 parent e94cb00 commit 29d5c24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/resource.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

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

0 commit comments

Comments
 (0)