Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix Py.SetArgv for systems that don't support GetCommandLineArgs
  • Loading branch information
filmor committed Mar 31, 2022
commit cf6e06484d9fcb5daefce01ae4fa2cdac5744e40
6 changes: 1 addition & 5 deletions src/runtime/Py.cs
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,7 @@ public static void SetArgv()
args = Enumerable.Empty<string>();
}

SetArgv(
new[] { "" }.Concat(
Environment.GetCommandLineArgs().Skip(1)
)
);
SetArgv(new[] { "" }.Concat(args.Skip(1)));
}

public static void SetArgv(params string[] argv)
Expand Down