提交 9d5d282e 编写于 作者: H Hou Tianze

Remove certs .pem file from ~/.bypy

上级 cf0f8db2
......@@ -111,6 +111,9 @@ class ByPy(object):
def migratesettings():
result = const.ENoError
if os.path.exists(const.OldByPyCertsPath):
removefile(const.OldByPyCertsPath)
filesToMove = [
[const.OldTokenFilePath, const.TokenFilePath],
[const.OldPicklePath, const.PicklePath]
......
......@@ -154,7 +154,7 @@ PicklePath = ConfigDir + os.sep + PickleFileName
ProgressFileName = 'bypy.parts.json'
ProgressPath = ConfigDir + os.sep + ProgressFileName
ByPyCertsFileName = 'bypy.cacerts.pem'
ByPyCertsPath = ConfigDir + os.sep + ByPyCertsFileName
OldByPyCertsPath = ConfigDir + os.sep + ByPyCertsFileName
# Old setting locations, should be moved to ~/.bypy to be clean
OldTokenFilePath = HomeDir + os.sep + '.bypy.json'
OldPicklePath = HomeDir + os.sep + '.bypy.pickle'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册