MCPcopy Create free account
hub / github.com/BirolLab/abyss / getPath

Method getPath

DataBase/DB.cc:116–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114}
115
116string DB::getPath(const string& program)
117{
118 stringstream echoStream, pathStream;
119 echoStream
120 << "echo `which " << program << "` > temp.txt";
121 systemOrExit(echoStream.str().c_str());
122 ifstream ifile("temp.txt");
123 if (ifile) {
124 string line;
125 while (getline (ifile, line)) pathStream << line;
126 }
127 systemOrExit("rm -f temp.txt");
128 return pathStream.str();
129}
130
131bool DB::definePeVars(const string& id)
132{

Callers

nothing calls this directly

Calls 3

systemOrExitFunction · 0.85
c_strMethod · 0.45
strMethod · 0.45

Tested by

no test coverage detected