Skip to content

Commit c20ab2e

Browse files
author
Jicheng Lu
committed
minor change
1 parent 333807c commit c20ab2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Plugins/BotSharp.Plugin.PythonInterpreter/Services/PyInterpretService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ private CodeInterpretResult CoreRun(string codeScript, CodeInterpretOptions? opt
8181
var list = new PyList();
8282
if (options?.Arguments?.Any() == true)
8383
{
84-
list.Append(new PyString(options?.ScriptName.IfNullOrEmptyAs("script.py")));
84+
list.Append(new PyString(options?.ScriptName ?? "script.py"));
8585

8686
foreach (var arg in options.Arguments)
8787
{

0 commit comments

Comments
 (0)