Skip to content

Commit

Permalink
Adjust the paths for windows backslashs
Browse files Browse the repository at this point in the history
Adjust the strings to parse all the backslashes and make them normal
slashes. Windows accept both kind, so, there is no problem of having them
inside the pythondirectories.

re #7097
  • Loading branch information
gesnerpassos committed May 16, 2013
1 parent 0877ae6 commit 0cd1718
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -695,7 +695,11 @@ void test_downloading_locally_modified_file(){

std::string curr_python_direc = config.getString("pythonscripts.directories");
std::string direc = std::string(local_rep).append("TofConv/");
std::cout << "find for direc " << direc << std::endl;
// make all the back slashs direct slashs, for comparing the path
// required for windows.
boost::replace_all(curr_python_direc,"\\","/");
boost::replace_all(direc,"\\","/");

TS_ASSERT(curr_python_direc.find(direc) != string::npos);


Expand Down

0 comments on commit 0cd1718

Please sign in to comment.