Skip to content

Commit 4f59c36

Browse files
committed
set argv
1 parent 3e1533a commit 4f59c36

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

p.q

+2
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ sp[`:clear][];
9999
sp[`:extend]spq;
100100
/ write python stdout/err to 1 and 2
101101
{.p.import[`sys;x][:;`:write;{x y;count y}y]}'[`:stdout`:stderr;1 2];
102+
/ set sys.argv
103+
if[not .p.eval["hasattr";.p.import`sys;`argv]`;.p.import[`sys][:;`argv;enlist""]]
102104

103105
/ Cleanup
104106
{![`.p;();0b;x]}`getseq`ntolist`runs`wfunc`gethelp`sp`spq`loaded;

0 commit comments

Comments
 (0)