nopycache i said

master
bel 2023-02-21 11:27:19 -07:00
parent 6be1203d28
commit f940365111
5 changed files with 5 additions and 5 deletions

2
.gitignore vendored
View File

@ -1,3 +1,3 @@
**/*.sw* **/*.sw*
/**/testdata/ /**/testdata/
/**/__pycache__ /**/__pycache__/

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -40,10 +40,10 @@ def debug_im(page):
return page.to_image(height=config.DEBUG_HEIGHT) return page.to_image(height=config.DEBUG_HEIGHT)
def debug_show(im, name=None): def debug_show(im, name=None):
#im.show() im.show()
im.save(f"/tmp/dnd-pdf-to-txt{'' if not name else '-'+name}.jpg") #im.save(f"/tmp/dnd-pdf-to-txt{'' if not name else '-'+name}.jpg")
if not config.DEBUG_NO_SHOW: #if not config.DEBUG_NO_SHOW:
go(f"qlmanage -p /tmp/dnd-pdf-to-txt{'' if not name else '-'+name}.jpg &> /dev/null") # go(f"qlmanage -p /tmp/dnd-pdf-to-txt{'' if not name else '-'+name}.jpg &> /dev/null")
__subprocesses__ = [] __subprocesses__ = []
def go(cmd): def go(cmd):