diff --git a/.gitignore b/.gitignore index e1cf84e..b1151ec 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,3 @@ **/*.sw* /**/testdata/ -/**/__pycache__ +/**/__pycache__/ diff --git a/__pycache__/cluster.cpython-310.pyc b/__pycache__/cluster.cpython-310.pyc deleted file mode 100644 index f560a59..0000000 Binary files a/__pycache__/cluster.cpython-310.pyc and /dev/null differ diff --git a/__pycache__/config.cpython-310.pyc b/__pycache__/config.cpython-310.pyc deleted file mode 100644 index 20462ef..0000000 Binary files a/__pycache__/config.cpython-310.pyc and /dev/null differ diff --git a/__pycache__/debug.cpython-310.pyc b/__pycache__/debug.cpython-310.pyc deleted file mode 100644 index 2422337..0000000 Binary files a/__pycache__/debug.cpython-310.pyc and /dev/null differ diff --git a/debug.py b/debug.py index 1498a99..309e901 100644 --- a/debug.py +++ b/debug.py @@ -40,10 +40,10 @@ def debug_im(page): return page.to_image(height=config.DEBUG_HEIGHT) def debug_show(im, name=None): - #im.show() - im.save(f"/tmp/dnd-pdf-to-txt{'' if not name else '-'+name}.jpg") - if not config.DEBUG_NO_SHOW: - go(f"qlmanage -p /tmp/dnd-pdf-to-txt{'' if not name else '-'+name}.jpg &> /dev/null") + im.show() + #im.save(f"/tmp/dnd-pdf-to-txt{'' if not name else '-'+name}.jpg") + #if not config.DEBUG_NO_SHOW: + # go(f"qlmanage -p /tmp/dnd-pdf-to-txt{'' if not name else '-'+name}.jpg &> /dev/null") __subprocesses__ = [] def go(cmd):