Skip to content

Commit 04fe889

Browse files
committed
SILENT: refactor userPrefsPathName because of a typo
1 parent 59eb9e4 commit 04fe889

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: dnfdragora/config.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def __init__(self, appName) :
3535
self._fileName = appName + ".yaml"
3636
self.systemDir = "/etc/" + appName
3737
pathdir = os.path.expanduser("~") + "/.config/"
38-
self._userPrfesPathName = os.path.join(pathdir, self._fileName)
38+
self._userPrefsPathName = os.path.join(pathdir, self._fileName)
3939

4040
def _load(self) :
4141
'''
@@ -61,8 +61,8 @@ def _load(self) :
6161
pass
6262

6363
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:
6666
self._userPrefs = yaml.safe_load(ymlfile)
6767
if not self._userPrefs:
6868
self._userPrefs = {}
@@ -90,6 +90,6 @@ def saveUserPreferences(self) :
9090
'''
9191
write user preferences into the related configuration file
9292
'''
93-
with open(self._userPrfesPathName, 'w') as outfile:
93+
with open(self._userPrefsPathName, 'w') as outfile:
9494
yaml.dump(self._userPrefs, outfile, default_flow_style=False)
9595

0 commit comments

Comments
 (0)