path import fixup

section_mults
bmo 2018-02-04 10:01:49 -08:00
rodzic c095e0691f
commit 83e1d01340
2 zmienionych plików z 7 dodań i 4 usunięć

Wyświetl plik

@ -1,8 +1,9 @@
#sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
import os
import sys
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
import pywsjtx.extra.simple_server
s = pywsjtx.SimpleServer()
s = pywsjtx.extra.simple_server.SimpleServer('127.0.0.1','2237',timeout=2.0)
while True:
(pkt, addr_port) = s.rx_packet()

Wyświetl plik

@ -19,6 +19,8 @@ import pywsjtx.extra.latlong_to_grid_square
# TODO: gpsd on linux
COMPORT = 'COM8'
IP_ADDRESS = '224.1.1.1'
PORT = 5007
logging.basicConfig(level=logging.DEBUG)
class NMEALocation(object):
@ -119,7 +121,7 @@ def example_callback(new_grid):
sgps = SerialGPS()
s = pywsjtx.extra.simple_server.SimpleServer('224.1.1.1',5007)
s = pywsjtx.extra.simple_server.SimpleServer(IP_ADDRESS,PORT)
print("Starting wsjt-x message server")