summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorA. Gordon <assafgordon@gmail.com>2014-10-23 19:27:09 (GMT)
committerA. Gordon <assafgordon@gmail.com>2014-10-23 19:27:09 (GMT)
commitf6a210279cbace2045fe1faf177ab1198dd2b936 (patch)
tree36d73b2821ed9af96141ce022ec57f28a9bf6228
parentc0363e1fda93e16eecb534456b7a8d1712ce586c (diff)
downloadgsv-eval-f6a210279cbace2045fe1faf177ab1198dd2b936.zip
gsv-eval-f6a210279cbace2045fe1faf177ab1198dd2b936.tar.gz
gsv-eval-f6a210279cbace2045fe1faf177ab1198dd2b936.tar.bz2
website: rename python scripts
-rwxr-xr-xwebsite/gsv_flask.py (renamed from website/gnu_eval_flask.py)4
-rw-r--r--website/gsv_worker.py (renamed from website/gnu_eval_worker.py)4
2 files changed, 4 insertions, 4 deletions
diff --git a/website/gnu_eval_flask.py b/website/gsv_flask.py
index eca2312..ece0832 100755
--- a/website/gnu_eval_flask.py
+++ b/website/gsv_flask.py
@@ -35,7 +35,7 @@ from redis import Redis
from subprocess import Popen,PIPE
from rq import Queue
-from gnu_eval_worker import do_gnu_eval, sanitize_project_name, \
+from gsv_worker import do_gnu_eval, sanitize_project_name, \
acceptable_source_url, \
get_current_active_job_num, \
get_current_submitted_job_num, \
@@ -50,7 +50,7 @@ q = Queue(connection=redis_connection)
pp = pprint.PrettyPrinter()
-results_dir = "/tmp/"
+results_dir = "/var/lib/gsv-eval/"
@app.route("/")
def index():
diff --git a/website/gnu_eval_worker.py b/website/gsv_worker.py
index 0e478ed..79ba2e9 100644
--- a/website/gnu_eval_worker.py
+++ b/website/gsv_worker.py
@@ -103,8 +103,8 @@ def do_gnu_eval(idnum,output_dir,project_name,source_url):
source_url = str(source_url)
idnum = str(idnum)
- eval_script = "../gnu_eval_remote.sh"
- args = [ eval_script, output_dir, idnum, project_name, source_url ]
+ eval_script = "../gsv-eval-remote.sh"
+ args = [ eval_script, output_dir + str(idnum) + ".html", project_name, source_url ]
child = Popen(args, shell=False, stdout=PIPE, stderr=PIPE)