pi-thermostat/thermostat/__main__.py

18 lines
329 B
Python

"""
Launch script for Pocket Friends.
"""
import sys
import thermostat
if __name__ == '__main__':
is_windowed = False
if len(sys.argv) > 0:
for arg in sys.argv:
print(arg)
if arg == '--windowed':
is_windowed = True
thermostat.mainloop.main(is_windowed=is_windowed)