Commit b4a36d268551b8182eb23866cb4b70588ec6dae6
1 parent
70925cf6
Exists in
master
restoring host os detection
Showing
1 changed file
with
5 additions
and
0 deletions
Show diff stats
robots/little_john/telemetry/code/monitor/graph_plotter_rewrite.py
@@ -24,6 +24,11 @@ if datafeed == None: | @@ -24,6 +24,11 @@ if datafeed == None: | ||
24 | print("Exiting...") | 24 | print("Exiting...") |
25 | sys.exit() | 25 | sys.exit() |
26 | 26 | ||
27 | +if platform.system()=='Windows': #easier than passing vars | ||
28 | + os='Windows' | ||
29 | +else: | ||
30 | + os='Other' | ||
31 | + | ||
27 | class Series: | 32 | class Series: |
28 | def __init__(self, points=100, title="Series title", xname="x-axis name", yname="y-axis name"): | 33 | def __init__(self, points=100, title="Series title", xname="x-axis name", yname="y-axis name"): |
29 | """Set up an object to store a 2D data series""" | 34 | """Set up an object to store a 2D data series""" |