summaryrefslogtreecommitdiffstats
path: root/systemCheck.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-08-09 19:33:40 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-08-09 19:33:40 +0200
commitd050a96342627db76dc5ac9af951c948de2fc075 (patch)
tree7ab189620a2cdcdf0b989266d75b9d6a124350b1 /systemCheck.py
parentaccount save function, DELETE OLD accounts.conf !!! (diff)
downloadpyload-d050a96342627db76dc5ac9af951c948de2fc075.tar.xz
removed gocr dependency
Diffstat (limited to 'systemCheck.py')
-rw-r--r--systemCheck.py13
1 files changed, 5 insertions, 8 deletions
diff --git a/systemCheck.py b/systemCheck.py
index 70de6d123..85c37873d 100644
--- a/systemCheck.py
+++ b/systemCheck.py
@@ -5,6 +5,8 @@ from os.path import join
import subprocess
import sys
+from module import InitHomeDir
+
def main():
print "##### System Information #####"
print ""
@@ -59,8 +61,8 @@ def main():
core_err = []
core_info = []
- if sys.version_info > (2, 7):
- core_err.append("Your python version is to new, Please use Python 2.6")
+ if sys.version_info > (2, 8):
+ core_err.append("Your python version is to new, Please use Python 2.6/2.7")
if sys.version_info < (2, 5):
core_err.append("Your python version is to old, Please use at least Python 2.5")
@@ -88,11 +90,6 @@ def main():
core_err.append("Please install tesseract to use Hoster, which uses captchas.")
try:
- p = subprocess.call(["gocr"], stdout=pipe, stderr=pipe)
- except:
- core_info.append("Install gocr to use some Hoster, which uses captchas.")
-
- try:
import OpenSSL
except:
core_info.append("Install OpenSSL if you want to create a secure connection to the core.")
@@ -148,7 +145,7 @@ def main():
except:
web_err.append("Webinterface won't work without django !!")
- if not exists(join(dirname(__file__), "module", "web", "pyload.db")):
+ if not exists("pyload.db"):
web_err.append("You dont have created database yet.")
web_err.append("Please run: python %s syncdb" % join(dirname(__file__), "module", "web", "manage.py"))