@@ -49,12 +49,7 @@ impl LanguagePlugin for Python3Plugin {
4949 path : & Path ,
5050 timeout : Option < Duration > ,
5151 ) -> Result < RunResult , TmcError > {
52- let run_result = run_tmc_command ( path, & [ ] , timeout) ;
53-
54- if let Err ( error) = run_result {
55- log:: error!( "Failed to parse exercise description. {}" , error) ;
56- }
57-
52+ run_tmc_command ( path, & [ ] , timeout) ?;
5853 Ok ( parse_test_result ( path) ?)
5954 }
6055
@@ -98,11 +93,13 @@ fn run_tmc_command(
9893 LocalPy :: Unix => ( "python3" , Command :: new ( "python3" ) ) ,
9994 LocalPy :: Windows => ( "py" , Command :: new ( "py" ) ) ,
10095 LocalPy :: WindowsConda { conda_path } => ( "conda" , Command :: new ( conda_path) ) ,
96+ LocalPy :: Custom { python_exec } => ( python_exec. as_str ( ) , Command :: new ( python_exec) ) ,
10197 } ;
10298 let command = match & * LOCAL_PY {
10399 LocalPy :: Unix => & mut command,
104100 LocalPy :: Windows => command. args ( & [ "-3" ] ) ,
105101 LocalPy :: WindowsConda { .. } => & mut command,
102+ LocalPy :: Custom { .. } => & mut command,
106103 } ;
107104 let command = command
108105 . args ( & common_args)
0 commit comments