nopycache i said
parent
6be1203d28
commit
f940365111
|
|
@ -1,3 +1,3 @@
|
||||||
**/*.sw*
|
**/*.sw*
|
||||||
/**/testdata/
|
/**/testdata/
|
||||||
/**/__pycache__
|
/**/__pycache__/
|
||||||
|
|
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
8
debug.py
8
debug.py
|
|
@ -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):
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue