Skip to content

Commit 11e25dc

Browse files
author
denfromufa
authored
Update runtime.cs
#299
1 parent 4361da2 commit 11e25dc

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎src/runtime/runtime.cs‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,8 @@ internal static void Initialize()
352352
Runtime.PyList_Append(path, item);
353353
Runtime.XDecref(item);
354354
AssemblyManager.UpdatePath();
355+
356+
PythonEngine.RunString("import sys; setattr(sys,'argv',[''])");
355357
}
356358

357359
internal static void Shutdown()
@@ -2309,4 +2311,4 @@ internal unsafe static extern IntPtr
23092311
internal unsafe static extern IntPtr
23102312
PyMethod_Function(IntPtr ob);
23112313
}
2312-
}
2314+
}

0 commit comments

Comments
 (0)