From 60964880943883de132e248b0deb3aaf8e5e67b5 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Fri, 20 Aug 2010 23:16:39 +0200 Subject: some win preparation --- module/setup.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'module/setup.py') diff --git a/module/setup.py b/module/setup.py index 57ebf598a..96c56edda 100644 --- a/module/setup.py +++ b/module/setup.py @@ -20,6 +20,7 @@ from getpass import getpass import gettext from hashlib import sha1 from os import remove +import os.name from os.path import abspath from os.path import dirname from os.path import isfile @@ -64,7 +65,7 @@ class Setup(): if not basic: print _("You need pycurl, sqlite and python 2.5, 2.6 or 2.7 to run pyLoad.") - print _("Please correct this and re run pyLoad.") + print _("Please correct this and re-run pyLoad.") print _("Setup will now close.") raw_input() return False @@ -191,12 +192,13 @@ class Setup(): pil = self.check_module("Image") self.print_dep("py-imaging", pil) - #@TODO win tesseract - - tesser = self.check_prog(["tesseract", "-v"]) + if os.name == "nt": + tesser = self.check_prog([join(pypath, "tesseract", "tesseract.exe"), "-v"]) + else: + tesser = self.check_prog(["tesseract", "-v"]) + self.print_dep("tesseract", tesser) - captcha = pil and tesser print "" -- cgit v1.2.3