Browse Source

Fix IOError when writing to settings file

doc-issue-template
MrS0m30n3 11 years ago
parent
commit
5a6d1f7d76
1 changed files with 2 additions and 0 deletions
  1. 2
      youtube_dl_gui/OptionsHandler.py

2
youtube_dl_gui/OptionsHandler.py

@ -149,6 +149,8 @@ class OptionsHandler():
self.load_default()
def save_to_file(self):
if not file_exist(self.get_config_path()):
makedir(self.get_config_path())
f = open(self.settings_abs_path, 'w')
f.write('Version='+__version__+'\n')
f.write('SavePath='+self.savePath.encode('utf-8')+'\n')

Loading…
Cancel
Save