#!/usr/bin/env python3 # ADN DMR Peer Server - launcher script (like monitor/monitor.py) # Copyright (C) 2026 Rodrigo Pérez, CE5RPY # # Derived from ADN DMR Server / FreeDMR / HBlink. Original license: ############################################################################### # Copyright (C) 2020 Simon Adlem, G7RZU # Copyright (C) 2016-2019 Cortney T. Buffington, N0MJS # # 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, write to the Free Software Foundation, # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ############################################################################### """ Run the ADN DMR Peer Server from the project root. python adn-server.py python adn-server.py -c adn-server.yaml python adn-server.py --logging DEBUG Config default: adn-server.yaml in this directory. """ from __future__ import annotations import sys from pathlib import Path _ROOT = Path(__file__).resolve().parent if str(_ROOT) not in sys.path: sys.path.insert(0, str(_ROOT)) if str(_ROOT / "src") not in sys.path: sys.path.insert(0, str(_ROOT / "src")) from adn_server.main import main if __name__ == "__main__": main()