Skip to content

Commit 8ef014c

Browse files
committed
correct path
Signed-off-by: Aleksandr Motsjonov <[email protected]>
1 parent 54a7b8d commit 8ef014c

File tree

1 file changed

+2
-33
lines changed

1 file changed

+2
-33
lines changed

tests/test_image_converter.cpp

Lines changed: 2 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -61,39 +61,8 @@ std::string run_rawtoaces_command( const std::vector<std::string> &args )
6161
// Build the command line - try multiple possible paths for different environments
6262
std::string command;
6363
#ifdef WIN32
64-
// Try multiple possible paths in order of likelihood
65-
std::vector<std::string> possible_paths = {
66-
"src\\rawtoaces\\Release\\rawtoaces.exe", // From project root
67-
"build\\src\\rawtoaces\\Release\\rawtoaces.exe", // From project root with build dir
68-
"..\\..\\src\\rawtoaces\\Release\\rawtoaces.exe", // From build/tests/Release
69-
"..\\src\\rawtoaces\\Release\\rawtoaces.exe", // From build/tests
70-
"..\\..\\..\\src\\rawtoaces\\Release\\rawtoaces.exe" // From deeper nested dirs
71-
};
72-
73-
// Check if any of the possible paths exist
74-
bool found = false;
75-
for ( const auto &path : possible_paths )
76-
{
77-
std::ifstream file( path );
78-
if ( file.good() )
79-
{
80-
command = path;
81-
found = true;
82-
std::cout << "DEBUG: Found rawtoaces executable at: " << path << std::endl;
83-
break;
84-
}
85-
else
86-
{
87-
std::cout << "DEBUG: Path not found: " << path << std::endl;
88-
}
89-
}
90-
91-
// If no path found, use the first one as fallback
92-
if ( !found )
93-
{
94-
command = possible_paths[0];
95-
std::cout << "DEBUG: No path found, using fallback: " << command << std::endl;
96-
}
64+
// Use the standard path from build directory
65+
command = "src\\rawtoaces\\Release\\rawtoaces.exe";
9766
#else
9867
command = "../src/rawtoaces/rawtoaces";
9968
#endif

0 commit comments

Comments
 (0)