If there no default saved dir, show a dialog for autosaving

This commit is contained in:
tzutalin
2017-09-27 18:43:24 +08:00
parent d8e961126a
commit cbc1761e9f
4 changed files with 21 additions and 13 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ class Settings(object):
# Be default, the home will be in the same folder as labelImg
home = os.path.expanduser("~")
self.data = {}
self.path = os.path.join(home, '.settings.pkl')
self.path = os.path.join(home, '.labelImgSettings.pkl')
def __setitem__(self, key, value):
self.data[key] = value