1#!/usr/bin/python
2"""The GPS Toolkit, python extension package - gpstk module
3    an open source library to the satellite navigation community."""
4
5import os
6import warnings
7
8# Force load the libgpstk library, so the symbols will already be present, even if ld wouldn't find them.
9from ctypes import cdll
10try:
11    lib_gpstk = cdll.LoadLibrary(os.path.join(os.path.split(__file__)[0], 'libgpstk.so.@GPSTK_VERSION@'))
12except Exception as ex:
13    warnings.warn(ex.message)
14    warnings.warn("Failed to import internal binaries.  Will attempt to use standard LD search path.", ImportWarning)
15
16#----------
17# Populate gpstk namespace
18#----------
19from .gpstk import *
20__version__ = "@GPSTK_VERSION@"
21