]> git.ipfire.org Git - people/ms/libloc.git/blame - src/python/location/__init__.py
importer: Drop EDROP as it has been merged into DROP
[people/ms/libloc.git] / src / python / location / __init__.py
CommitLineData
7c13a4e6
MT
1###############################################################################
2# #
3# libloc - A library to determine the location of someone on the Internet #
4# #
5# Copyright (C) 2020 IPFire Development Team <info@ipfire.org> #
6# #
7# This library is free software; you can redistribute it and/or #
8# modify it under the terms of the GNU Lesser General Public #
9# License as published by the Free Software Foundation; either #
10# version 2.1 of the License, or (at your option) any later version. #
11# #
12# This library is distributed in the hope that it will be useful, #
13# but WITHOUT ANY WARRANTY; without even the implied warranty of #
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU #
15# Lesser General Public License for more details. #
16# #
17###############################################################################
18
19# Import everything from the C module
20from _location import *
60d5aceb 21from _location import __version__
e44b30f4
MT
22
23# Initialise logging
24from . import logger
affa4924
MT
25
26def open(path=None):
27 """
28 Opens the database at path, or opens the default database.
29 """
30 if not path:
31 path = DATABASE_PATH
32
33 # Open the database
34 return Database(path)