File tree Expand file tree Collapse file tree 1 file changed +2
-33
lines changed
Expand file tree Collapse file tree 1 file changed +2
-33
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments