Skip to content

Commit d899083

Browse files
committed
Fix Py.SetArgv for systems that don't support GetCommandLineArgs
1 parent d2d3ba6 commit d899083

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/runtime/Py.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -122,11 +122,7 @@ public static void SetArgv()
122122
args = Enumerable.Empty<string>();
123123
}
124124

125-
SetArgv(
126-
new[] { "" }.Concat(
127-
Environment.GetCommandLineArgs().Skip(1)
128-
)
129-
);
125+
SetArgv(new[] { "" }.Concat(args.Skip(1)));
130126
}
131127

132128
public static void SetArgv(params string[] argv)

0 commit comments

Comments
 (0)