[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [ooni-probe/master] Check if the configuration file is a file
commit 1b8b310f20ca4b9c8f65c985b6e46006021c4eaf
Author: Arturo Filastò <art@xxxxxxxxx>
Date: Thu Aug 7 17:10:37 2014 +0200
Check if the configuration file is a file
---
ooni/settings.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ooni/settings.py b/ooni/settings.py
index 6f95536..60d0b50 100644
--- a/ooni/settings.py
+++ b/ooni/settings.py
@@ -100,7 +100,7 @@ class OConfig(object):
w.write(line)
def read_config_file(self, check_incoherences=False):
- if not os.path.exists(self.config_file):
+ if not os.path.isfile(self.config_file):
print "Configuration file does not exist."
self._create_config_file()
self.read_config_file()
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits