コード例 #1
0
ファイル: csv_to_tex_daemon.py プロジェクト: gsukhanov/d16
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)
コード例 #2
0
ファイル: pdf_daemon.py プロジェクト: azhuravlev1/d16
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)
コード例 #3
0
ファイル: csv_to_tex_daemon.py プロジェクト: artditel/d16
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)
コード例 #4
0
ファイル: pdf_daemon.py プロジェクト: artditel/d16
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)
コード例 #5
0
ファイル: csv_to_tex_daemon.py プロジェクト: savfod/d16
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)
コード例 #6
0
ファイル: pdf_daemon.py プロジェクト: savfod/d16
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)