summaryrefslogtreecommitdiff
path: root/onionshare/settings.py
diff options
context:
space:
mode:
Diffstat (limited to 'onionshare/settings.py')
-rw-r--r--onionshare/settings.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/onionshare/settings.py b/onionshare/settings.py
index 1eaa4e40..e4c09058 100644
--- a/onionshare/settings.py
+++ b/onionshare/settings.py
@@ -44,15 +44,17 @@ class Settings(object):
self.common.log('Settings', '__init__')
- # Default config
- self.filename = self.build_filename()
-
# If a readable config file was provided, use that instead
if config:
if os.path.isfile(config):
self.filename = config
else:
self.common.log('Settings', '__init__', 'Supplied config does not exist or is unreadable. Falling back to default location')
+ self.filename = self.build_filename()
+
+ else:
+ # Default config
+ self.filename = self.build_filename()
# Dictionary of available languages in this version of OnionShare,
# mapped to the language name, in that language