summaryrefslogtreecommitdiff
path: root/src/leap/util/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/leap/util/__init__.py')
-rw-r--r--src/leap/util/__init__.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/leap/util/__init__.py b/src/leap/util/__init__.py
new file mode 100644
index 00000000..a70a9a8b
--- /dev/null
+++ b/src/leap/util/__init__.py
@@ -0,0 +1,9 @@
+import logging
+logger = logging.getLogger(__name__)
+
+try:
+ import pygeoip
+ HAS_GEOIP = True
+except ImportError:
+ logger.debug('PyGeoIP not found. Disabled Geo support.')
+ HAS_GEOIP = False