aboutsummaryrefslogtreecommitdiff
path: root/onionshare/settings.py
diff options
context:
space:
mode:
authorMicah Lee <micah@micahflee.com>2018-12-21 10:46:09 -0800
committerMicah Lee <micah@micahflee.com>2018-12-21 10:46:09 -0800
commit5d7449c47618e2103ef65a775386a181fcaa9e6e (patch)
tree906b2ab5cee3c4a7214b9cbe4d9b51a3ea347855 /onionshare/settings.py
parent415c01e00a46769f095b41b79eac0cf74192f38f (diff)
downloadonionshare-5d7449c47618e2103ef65a775386a181fcaa9e6e.tar.gz
onionshare-5d7449c47618e2103ef65a775386a181fcaa9e6e.zip
Use os.path.expanduser when creating data dir, and no need to try creating data dir in Settings.save because it's created in Config.build_data_dir
Diffstat (limited to 'onionshare/settings.py')
-rw-r--r--onionshare/settings.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/onionshare/settings.py b/onionshare/settings.py
index 38478dbd..06235198 100644
--- a/onionshare/settings.py
+++ b/onionshare/settings.py
@@ -185,7 +185,6 @@ class Settings(object):
Save settings to file.
"""
self.common.log('Settings', 'save')
- os.makedirs(os.path.dirname(self.filename), exist_ok=True)
open(self.filename, 'w').write(json.dumps(self._settings))
self.common.log('Settings', 'save', 'Settings saved in {}'.format(self.filename))