File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ def __init__(self, appName) :
35
35
self ._fileName = appName + ".yaml"
36
36
self .systemDir = "/etc/" + appName
37
37
pathdir = os .path .expanduser ("~" ) + "/.config/"
38
- self ._userPrfesPathName = os .path .join (pathdir , self ._fileName )
38
+ self ._userPrefsPathName = os .path .join (pathdir , self ._fileName )
39
39
40
40
def _load (self ) :
41
41
'''
@@ -61,8 +61,8 @@ def _load(self) :
61
61
pass
62
62
63
63
try :
64
- print ("Finally read user settings from %s" % self ._userPrfesPathName )
65
- with open (self ._userPrfesPathName , 'r' ) as ymlfile :
64
+ print ("Finally read user settings from %s" % self ._userPrefsPathName )
65
+ with open (self ._userPrefsPathName , 'r' ) as ymlfile :
66
66
self ._userPrefs = yaml .safe_load (ymlfile )
67
67
if not self ._userPrefs :
68
68
self ._userPrefs = {}
@@ -90,6 +90,6 @@ def saveUserPreferences(self) :
90
90
'''
91
91
write user preferences into the related configuration file
92
92
'''
93
- with open (self ._userPrfesPathName , 'w' ) as outfile :
93
+ with open (self ._userPrefsPathName , 'w' ) as outfile :
94
94
yaml .dump (self ._userPrefs , outfile , default_flow_style = False )
95
95
You can’t perform that action at this time.
0 commit comments