From 93c4c39a7f0493c786e4bd3f58ab795e8bbb97f2 Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Sat, 5 May 2012 21:29:34 +0100 Subject: elusive gps issue --- wim.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'wim.py') diff --git a/wim.py b/wim.py index 34da1a2..ce5c6ea 100755 --- a/wim.py +++ b/wim.py @@ -20,8 +20,9 @@ if len(sys.argv)<2: debug=False if len(sys.argv)>2: - if sys.argv[1]=="-D" or sys.argv[1]=="-d": + if sys.argv[2]=="-D" or sys.argv[2]=="-d": debug=True + print "wim.py: DEBUG mode" doc=xml2obj(open(sys.argv[1])) gpslayers=[] @@ -103,4 +104,4 @@ while True: print "sending:",str(r[0]),str(r[1]) #pd needs \n at end of message outsock.sendto( str(r[0])+' '+str(r[1])+'\n', (PD_IP, PD_PORT) ) - \ No newline at end of file + -- cgit v1.2.3