summarylogtreecommitdiffstats
path: root/003-libsvm-fix-tools-path.patch
diff options
context:
space:
mode:
Diffstat (limited to '003-libsvm-fix-tools-path.patch')
-rw-r--r--003-libsvm-fix-tools-path.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/003-libsvm-fix-tools-path.patch b/003-libsvm-fix-tools-path.patch
new file mode 100644
index 000000000000..b0375b9c6971
--- /dev/null
+++ b/003-libsvm-fix-tools-path.patch
@@ -0,0 +1,30 @@
+diff -up ./tools/easy.py.toolsDir ./tools/easy.py
+--- ./tools/easy.py.toolsDir 2013-03-31 17:06:49.000000000 +1000
++++ ./tools/easy.py 2013-04-13 23:17:53.399526910 +1000
+@@ -12,10 +12,10 @@ if len(sys.argv) <= 1:
+
+ is_win32 = (sys.platform == 'win32')
+ if not is_win32:
+- svmscale_exe = "../svm-scale"
+- svmtrain_exe = "../svm-train"
+- svmpredict_exe = "../svm-predict"
+- grid_py = "./grid.py"
++ svmscale_exe = "/usr/bin/svm-scale"
++ svmtrain_exe = "/usr/bin/svm-train"
++ svmpredict_exe = "/usr/bin/svm-predict"
++ grid_py = "/usr/bin/svm-grid.py"
+ gnuplot_exe = "/usr/bin/gnuplot"
+ else:
+ # example for windows
+diff -up ./tools/grid.py.toolsDir ./tools/grid.py
+--- ./tools/grid.py.toolsDir 2013-03-31 17:06:50.000000000 +1000
++++ ./tools/grid.py 2013-04-13 23:18:53.964522769 +1000
+@@ -18,7 +18,7 @@ class GridOption:
+ def __init__(self, dataset_pathname, options):
+ dirname = os.path.dirname(__file__)
+ if sys.platform != 'win32':
+- self.svmtrain_pathname = os.path.join(dirname, '../svm-train')
++ self.svmtrain_pathname = '/usr/bin/svm-train'
+ self.gnuplot_pathname = '/usr/bin/gnuplot'
+ else:
+ # example for windows