1
0
Fork 0
mirror of https://git.freebsd.org/ports.git synced 2025-07-11 14:29:17 -04:00
ports/graphics/ocrfeeder/files/patch-src-ocrfeeder-util-lib.py
Jason Helfman 50e462f9e3 - Update to 0.7.7
- Account for DISABLE_NLS
- Add patch for runtime bug

PR:	ports/164202
Submitted by: maintainer
Approved by:	crees, rene (mentors)
2012-01-24 19:54:22 +00:00

11 lines
503 B
Python

--- src/ocrfeeder/util/lib.py.orig 2012-01-16 23:38:47.000000000 +0800
+++ src/ocrfeeder/util/lib.py 2012-01-16 23:38:54.000000000 +0800
@@ -130,7 +130,7 @@
return command
def unpaperImage(configuration_manager, image_path):
- tmp_dir = configuration_manager.temporary_dir
+ tmp_dir = configuration_manager.TEMPORARY_FOLDER
prefix = os.path.splitext(image_path)[0]
unpapered_name = os.path.join(tmp_dir, os.path.basename(prefix) + '.ppm')
if os.path.exists(unpapered_name):