diff --git a/src/Plugins/BotSharp.Plugin.PythonInterpreter/Services/PyInterpretService.cs b/src/Plugins/BotSharp.Plugin.PythonInterpreter/Services/PyInterpretService.cs index 9041126b..46ed2e47 100644 --- a/src/Plugins/BotSharp.Plugin.PythonInterpreter/Services/PyInterpretService.cs +++ b/src/Plugins/BotSharp.Plugin.PythonInterpreter/Services/PyInterpretService.cs @@ -81,7 +81,7 @@ public class PyInterpretService : ICodeInterpretService var list = new PyList(); if (options?.Arguments?.Any() == true) { - list.Append(new PyString(options?.ScriptName.IfNullOrEmptyAs("script.py"))); + list.Append(new PyString(options?.ScriptName ?? "script.py")); foreach (var arg in options.Arguments) {