Skip to content
Merged
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 May 4, 2022
commit d8990839a8eaf87ed885cba75427736cffc38353
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