blob: 2c6c587edadfdb3659cb013586d5eb90a09a0481 [file] [log] [blame]
rajendrajaiswal318533f2020-03-09 15:41:41 +00001#!/usr/bin/env python3
2
rajendrajaiswal6a61ad82019-12-16 14:24:02 +00003import time
4import schedule
5from pnf import PNF
6import pnfconfig
7
8if __name__ == "__main__":
9 try:
10 pnf = PNF()
rajendrajaiswal318533f2020-03-09 15:41:41 +000011 schedule.every(pnfconfig.ROP).seconds.do(pnf.pm_job)
rajendrajaiswal6a61ad82019-12-16 14:24:02 +000012 while True:
13 schedule.run_pending()
14 time.sleep(1)
15 except Exception as error:
16 print(error)