[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [ooni-probe/master] Use the new function for determining the geoip data files path



commit 6d2d12aee6513b69795777505a51685d3e5e06de
Author: Arturo Filastò <art@xxxxxxxxx>
Date:   Sat Jan 3 18:04:07 2015 +0100

    Use the new function for determining the geoip data files path
---
 ooni/geoip.py |    6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/ooni/geoip.py b/ooni/geoip.py
index 9c3ee31..1ff90a7 100644
--- a/ooni/geoip.py
+++ b/ooni/geoip.py
@@ -81,12 +81,8 @@ def database_version():
         }
     }
 
-    geoip_data_dir = config.advanced.get("geoip_data_dir")
-    if not geoip_data_dir:
-        return version
-
     for key in version.keys():
-        geoip_file = os.path.join(geoip_data_dir, key + ".dat")
+        geoip_file = config.get_data_file_path("GeoIP/" + key + ".dat")
         if not os.path.isfile(geoip_file):
             continue
         timestamp = os.stat(geoip_file).st_mtime



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits