2022-01-05 15:19:32 +00:00
|
|
|
#! /usr/bin/env python3
|
2022-09-15 19:59:55 +00:00
|
|
|
# NanoVNASaver - a python program to view and export Touchstone data from a
|
|
|
|
# NanoVNA
|
|
|
|
# Copyright (C) 2019. Rune B. Broberg
|
2019-09-04 18:34:02 +00:00
|
|
|
#
|
|
|
|
# This program is free software: you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
|
2023-07-17 12:21:16 +00:00
|
|
|
# This launcher is ignored by setuptools. Its only purpose is direct
|
|
|
|
# execution from a source tree.
|
2022-05-24 15:05:59 +00:00
|
|
|
|
2023-07-17 12:21:16 +00:00
|
|
|
import os.path
|
|
|
|
import sys
|
2022-05-24 15:05:59 +00:00
|
|
|
|
2023-07-17 12:21:16 +00:00
|
|
|
# Ignore the current working directory.
|
|
|
|
src = os.path.join(os.path.dirname(__file__), "src")
|
2023-03-08 08:40:39 +00:00
|
|
|
|
2023-07-31 11:31:27 +00:00
|
|
|
if os.path.exists(src):
|
2023-08-01 10:42:38 +00:00
|
|
|
sys.path.insert(0, src)
|
2023-03-06 07:51:21 +00:00
|
|
|
|
2023-07-17 12:21:16 +00:00
|
|
|
# pylint: disable-next=wrong-import-position
|
|
|
|
import NanoVNASaver.__main__
|
2019-09-04 18:34:02 +00:00
|
|
|
|
2023-07-17 12:21:16 +00:00
|
|
|
# The traditional test does not make sense here.
|
2023-08-01 10:42:38 +00:00
|
|
|
assert __name__ == "__main__"
|
2023-07-17 12:21:16 +00:00
|
|
|
|
|
|
|
NanoVNASaver.__main__.main()
|