When using leetgo test -L -l python b104/1 for local testing, it will raise Case 1: Failed to start error.
The reason is that python.exe and .py files would return relative paths prefixed with contest/, and after cmd.Dir = genResult.OutDir , the file path would change to an error file prefixed with contest/contest/ path. I think returning the absolute path will solve this problem.
When using
leetgo test -L -l python b104/1
for local testing, it will raiseCase 1: Failed to start
error.The reason is that python.exe and .py files would return relative paths prefixed with
contest/
, and aftercmd.Dir = genResult.OutDir
, the file path would change to an error file prefixed withcontest/contest/
path. I think returning the absolute path will solve this problem.Tested in Windows 10.