From 2b40e8145c2264df1febe9ee68ca0c5f60a4b8f1 Mon Sep 17 00:00:00 2001 From: Greg Troxel Date: Sun, 25 Jan 2015 20:17:31 -0500 Subject: Print sys.platform and platform.platform(). They are different! This code printed one, and the if statement in gps/fake.py used the other. --- gpsfake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gpsfake') diff --git a/gpsfake b/gpsfake index 9058b8fa..67ee1da6 100755 --- a/gpsfake +++ b/gpsfake @@ -153,7 +153,7 @@ if __name__ == '__main__': elif (switch == '-t'): tcp = True elif (switch == '-T'): - sys.stdout.write("%s: WRITE_PAD = %.f CLOSE_DELAY = %.2f\n" % (platform.platform(), gpsfake.WRITE_PAD, gpsfake.CLOSE_DELAY)) + sys.stdout.write("sys %s platform %s: WRITE_PAD = %.f CLOSE_DELAY = %.2f\n" % (sys.platform, platform.platform(), gpsfake.WRITE_PAD, gpsfake.CLOSE_DELAY)) raise SystemExit,0 elif (switch == '-u'): udp = True -- cgit v1.2.1