Files

36 lines
1.2 KiB
Diff
Raw Permalink Normal View History

2023-10-04 16:02:11 +02:00
--- tools/grid.py.orig
+++ tools/grid.py
@@ -18,8 +18,8 @@
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.gnuplot_pathname = '/usr/bin/gnuplot'
+ self.svmtrain_pathname = '@PREFIX@/bin/svm-train'
+ self.gnuplot_pathname = '@PREFIX@/bin/gnuplot'
else:
# example for windows
self.svmtrain_pathname = os.path.join(dirname, r'..\windows\svm-train.exe')
--- tools/easy.py.orig
+++ tools/easy.py
@@ -12,11 +12,11 @@
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"
- gnuplot_exe = "/usr/bin/gnuplot"
+ svmscale_exe = "@PREFIX@/bin/svm-scale"
+ svmtrain_exe = "@PREFIX@/bin/svm-train"
+ svmpredict_exe = "@PREFIX@/bin/svm-predict"
+ grid_py = "@PREFIX@/bin/snm-grid.py"
+ gnuplot_exe = "@PREFIX@/bin/gnuplot"
else:
# example for windows
svmscale_exe = r"..\windows\svm-scale.exe"