summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xdiff.cgi2
-rwxr-xr-xinfo.cgi2
-rw-r--r--sch.py2
3 files changed, 3 insertions, 3 deletions
diff --git a/diff.cgi b/diff.cgi
index c6176b3..4409a13 100755
--- a/diff.cgi
+++ b/diff.cgi
@@ -17,5 +17,5 @@ if not sch.valid_fname(fname[0]) or not sch.valid_fname(fname[1]):
sch.error("Fuck off!")
sch.print_header("Differences between '%s' and '%s'" % (fname[0], fname[1]))
-sch.run_proc('/usr/local/bin/syrep --diff "%s/%s" "%s/%s"' % (sch.repository_directory, fname[0], sch.repository_directory, fname[1]))
+sch.run_proc('$s --diff "%s/%s" "%s/%s"' % (sch.syrep_binary, sch.repository_directory, fname[0], sch.repository_directory, fname[1]))
sch.print_footer()
diff --git a/info.cgi b/info.cgi
index 6b65301..09fd1a9 100755
--- a/info.cgi
+++ b/info.cgi
@@ -14,5 +14,5 @@ if not sch.valid_fname(fname):
sch.error("Fuck off!")
sch.print_header("File Info for '%s'" % fname)
-sch.run_proc('/usr/local/bin/syrep --info "%s/%s" ' % (sch.repository_directory, fname))
+sch.run_proc('%s --info "%s/%s" ' % (sch.syrep_binary, sch.repository_directory, fname))
sch.print_footer()
diff --git a/sch.py b/sch.py
index 395cf1e..0831abc 100644
--- a/sch.py
+++ b/sch.py
@@ -2,7 +2,7 @@
import cgi, sys, os
repository_directory = "./rep"
-
+syrep_binary = "/usr/local/bin/syrep"
header_done = 0
def print_header(s):