Пример #1
0
 def _validate_file(self, src_file):
     """ Checks the provided files exist. Exits if theres an issue """
     if not os.path.exists(src_file):
         utilities.flush_print("Train:ERROR Invalid File: " + \
             src_file + "\n")
         sys.exit()
Пример #2
0
 def _print(self, item):
     if self.verbose:
         utilities.flush_print(item)