Coverage for pychlv / __init__.py: 100%
14 statements
« prev ^ index » next coverage.py v7.14.0, created at 2026-08-21 15:21 -0400
« prev ^ index » next coverage.py v7.14.0, created at 2026-08-21 15:21 -0400
2# -*- coding: utf-8 -*-
4u'''A pure Python implementation of the U{SwissTopo<https://www.SwissTopo.admin.CH/en/
5the-swiss-coordinates-system>} I{LandesVermessung 1995 (LV95)} and I{-1903 (LV03)}
6local projections and conversions from and to I{WGS84 or Bessel1841 geodetic} lat-,
7longitude and height.
8'''
9import os.path as os_path
10import sys
12# _isfrozen = getattr(_sys, 'frozen', False)
13pychlv_abspath = os_path.dirname(os_path.abspath(__file__)) # _sys._MEIPASS + '/pychlv'
14_pychlv_ = __package__ or os_path.basename(pychlv_abspath)
16# setting __path__ should ...
17__path__ = [pychlv_abspath]
18try: # ... make this import work, ...
19 import pychlv.__pygeodesy as __pygeodesy # noqa: F401
20except ImportError: # ... if not, extend sys.path
21 if pychlv_abspath not in sys.path:
22 sys.path.insert(0, pychlv_abspath)
23 import pychlv.__pygeodesy as __pygeodesy # noqa: F401
25import pychlv.chlvs as _chlvs # noqa: F401
26import pychlv.chlvTuples as _chlvTuples # noqa: F401
28__all__ = __pygeodesy._ALL_STAR(_pychlv_, _chlvs, _chlvTuples, __pygeodesy)
29__version__ = '26.08.18'
31del _chlvs, _chlvTuples, os_path, sys
34def _versions(**sep): # in .__main__, ..test/bases
35 # Get the pychlv, pygeodesy, Python ... versions (C{str}).
36 return __pygeodesy._versions(pychlv=__version__, **sep)
38# **) MIT License
39#
40# Copyright (C) 2026-2026 -- mrJean1 at Gmail -- All Rights Reserved.
41#
42# Permission is hereby granted, free of charge, to any person obtaining a
43# copy of this software and associated documentation files (the "Software"),
44# to deal in the Software without restriction, including without limitation
45# the rights to use, copy, modify, merge, publish, distribute, sublicense,
46# and/or sell copies of the Software, and to permit persons to whom the
47# Software is furnished to do so, subject to the following conditions:
48#
49# The above copyright notice and this permission notice shall be included
50# in all copies or substantial portions of the Software.
51#
52# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
53# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
54# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
55# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
56# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
57# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
58# OTHER DEALINGS IN THE SOFTWARE.