diff options
| author | Tim Redfern <tim@eclectronics.org> | 2012-05-05 21:29:34 +0100 |
|---|---|---|
| committer | Tim Redfern <tim@eclectronics.org> | 2012-05-05 21:29:34 +0100 |
| commit | 93c4c39a7f0493c786e4bd3f58ab795e8bbb97f2 (patch) | |
| tree | a565c3f5425ae873bd174543346369da8df5531b /wim.py | |
| parent | 2190d8a81cc49229c87ebdad1a293c50d514697d (diff) | |
elusive gps issue
Diffstat (limited to 'wim.py')
| -rwxr-xr-x | wim.py | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 + |
