import RPi.GPIO as GPIO
import statemachine, actor, pins, tysock, waker
from libtuer import logger
+import argparse
+
+# Parse arguments
+parser = argparse.ArgumentParser(description='Run a door')
+parser.add_argument("-d", "--debug",
+ action="store_true", dest="debug",
+ help="Don't send emails")
+args = parser.parse_args()
+if args.debug:
+ import libtuer
+ libtuer.mailAddress = []
# initialize GPIO stuff
GPIO.setmode(GPIO.BOARD)