Skip to content

Commit dc97fc9

Browse files
committed
Fix default path to model.
1 parent bcd77ac commit dc97fc9

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

VSharp.API/VSharpOptions.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,4 +170,9 @@ public VSharpOptions(
170170
/// </summary>
171171
public DirectoryInfo RenderedTestsDirectoryInfo =>
172172
Directory.Exists(RenderedTestsDirectory) ? new DirectoryInfo(RenderedTestsDirectory) : null;
173+
174+
public string GetDefaultPathToModel()
175+
{
176+
return DefaultPathToModel;
177+
}
173178
}

VSharp.Runner/RunnerProgram.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ public static int Main(string[] args)
355355
"Time for test generation in seconds. Negative value means no timeout.");
356356
var pathToModelOption = new Option<string>(
357357
aliases: new[] { "--model", "-m" },
358-
() => defaultOptions.PathToModel,
358+
() => defaultOptions.GetDefaultPathToModel(),
359359
"Path to ONNX file with model for AI searcher.");
360360
var solverTimeoutOption = new Option<int>(
361361
aliases: new[] { "--solver-timeout", "-st" },

0 commit comments

Comments
 (0)