def run(self):
        #On Start, check if any images exists in folder
        for filename in os.listdir(self.__src_path):
            if filename == '.keep':
                continue

            filePath = os.path.join(self.__src_path, filename)

            ImageProcessor.do(self, filePath, self.params)

        print(self.params['watch'])
        if not self.params['watch']:
            sys.exit(2)

        self.start()

        try:
            while True:
                time.sleep(1)
        except KeyboardInterrupt:
            self.stop()
 def process(self, event):
     ImageProcessor.do(self, event.src_path, self.params)