File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -332,21 +332,19 @@ fn get_locales_dir(p: &str) -> Result<PathBuf, LocalizationError> {
332
332
let exe_path = env:: current_exe ( ) . map_err ( |e| {
333
333
LocalizationError :: PathResolution ( format ! ( "Failed to get executable path: {}" , e) )
334
334
} ) ?;
335
- println ! ( "Executable path: {}" , exe_path . display ( ) ) ;
335
+
336
336
let exe_dir = exe_path. parent ( ) . ok_or_else ( || {
337
337
LocalizationError :: PathResolution ( "Failed to get executable directory" . to_string ( ) )
338
338
} ) ?;
339
- println ! ( "Executable directory: {}" , exe_dir . display ( ) ) ;
339
+
340
340
// Try the coreutils-style path first
341
341
let coreutils_path = exe_dir. join ( "locales" ) . join ( p) ;
342
- println ! ( "Looking for locales in: {}" , coreutils_path. display( ) ) ;
343
342
if coreutils_path. exists ( ) {
344
343
return Ok ( coreutils_path) ;
345
344
}
346
345
347
346
// Fallback to just the parameter as a relative path
348
347
let fallback_path = exe_dir. join ( p) ;
349
- println ! ( "Fallback locales path: {}" , fallback_path. display( ) ) ;
350
348
if fallback_path. exists ( ) {
351
349
return Ok ( fallback_path) ;
352
350
}
You can’t perform that action at this time.
0 commit comments