summaryrefslogtreecommitdiff
path: root/wim.py
diff options
context:
space:
mode:
Diffstat (limited to 'wim.py')
-rwxr-xr-xwim.py5
1 files changed, 3 insertions, 2 deletions
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
+