提交 6a1f2c27 编写于 作者: K Kentaro Wada

Use os.path as osp

上级 78cf389e
......@@ -2,8 +2,7 @@ import argparse
import codecs
import logging
import os
from os.path import abspath
from os.path import dirname
import os.path as osp
import sys
import yaml
......@@ -160,7 +159,7 @@ def main():
translator = QtCore.QTranslator()
translator.load(
QtCore.QLocale.system().name(),
dirname(abspath(__file__)) + '/translate'
osp.dirname(osp.abspath(__file__)) + '/translate'
)
app = QtWidgets.QApplication(sys.argv)
app.setApplicationName(__appname__)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册