1 2 3 4 5 6 7 8
#/bin/python3 from config import * import commands def log_write(status): with open(LOG_PATH_FILE, 'a') as f: f.write("{} {}\n".format(commands.date(), status))