def main(): watcher = file_changes_watcher.file_changes_watcher(WATCH_DIRECTORIES, ".csv") while True: try: if watcher.is_smth_changed(): generate_tex_files(sorted(watcher.get_all_files())) except Exception as e: print(sys.exc_info()) time.sleep(1)
def main(): watcher = file_changes_watcher.file_changes_watcher(WATCH_DIRECTORIES, ".tex", stopwords=STOPWORDS) while True: try: for file_path in watcher.get_changed_files(): make_pdf(file_path) except Exception as e: print(sys.exc_info()) raise e time.sleep(1)
def main(): parser=parse_args() watch_dirs = [os.path.join(parser.root, d) for d in WATCH_DIRECTORIES] watcher = file_changes_watcher.file_changes_watcher(watch_dirs, ".csv", stopwords=STOPWORDS) while True: try: if watcher.is_smth_changed(): generate_tex_files(sorted(watcher.get_all_files()), parser.root) except Exception as e: print(traceback.format_exc()) if parser.debug: raise e time.sleep(1)
def main(): parser=parse_args() watch_dirs = [os.path.join(parser.root, d) for d in WATCH_DIRECTORIES] watcher = file_changes_watcher.file_changes_watcher(watch_dirs, ".tex", stopwords=STOPWORDS) while True: try: for file_path in watcher.get_changed_files(): make_pdf(file_path) except Exception as e: print(traceback.format_exc()) if parser.debug: raise e time.sleep(1)
def main(): parser = parse_args() watch_dirs = [os.path.join(parser.root, d) for d in WATCH_DIRECTORIES] watcher = file_changes_watcher.file_changes_watcher(watch_dirs, ".csv", stopwords=STOPWORDS) while True: try: if watcher.is_smth_changed(): generate_tex_files(sorted(watcher.get_all_files()), parser.root) except Exception as e: print(traceback.format_exc()) if parser.debug: raise e time.sleep(1)
def main(): parser = parse_args() watch_dirs = [os.path.join(parser.root, d) for d in WATCH_DIRECTORIES] watcher = file_changes_watcher.file_changes_watcher(watch_dirs, ".tex", stopwords=STOPWORDS) while True: try: for file_path in watcher.get_changed_files(): make_pdf(file_path) except Exception as e: print(traceback.format_exc()) if parser.debug: raise e time.sleep(1)