1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
Description: hard code binary path
Simka gets the "simka" binary path from the command "simka", which is not the same as /usr/bin/simka. Hard code this path so that simka finds its binary.
Author: Shayan Doust <hello@shayandoust.me>
Last-Update: 2019-09-13
---
--- simka.orig/src/SimkaPotara.cpp
+++ simka/src/SimkaPotara.cpp
@@ -28,7 +28,7 @@
*/
SimkaPotara::SimkaPotara(const string& execFilename) : Tool ("Simka")
{
-
+
_execFilename = execFilename;
Simka::createOptionsParser(getParser());
@@ -151,7 +151,7 @@
// We run the tool with the provided command line arguments.
//cout << argv[0] << endl;
- SimkaPotara(string(argv[0])).run (argc, argv);
+ SimkaPotara(string("/usr/bin/simka")).run (argc, argv);
}
catch (Exception& e)
{
|