summaryrefslogtreecommitdiffstats
path: root/module/setup.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-08-20 23:16:39 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-08-20 23:16:39 +0200
commit60964880943883de132e248b0deb3aaf8e5e67b5 (patch)
tree7773600894666c5f8db7ec7a32ddf3f2e8b33c8c /module/setup.py
parentsetup improvements, UnRar fix (diff)
downloadpyload-60964880943883de132e248b0deb3aaf8e5e67b5.tar.xz
some win preparation
Diffstat (limited to 'module/setup.py')
-rw-r--r--module/setup.py12
1 files changed, 7 insertions, 5 deletions
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 ""