Skip to content

Commit

Permalink
Fix #16
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxCan-Code authored and rikedyp committed Jan 20, 2025
1 parent 7e47c04 commit 3f5a00d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pynapl/RunDyalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ def posix_dythread(inf,outf, dyalog=b"dyalog"):
path=to_bytes(os.path.dirname(SCRIPTFILE))+b'/Py.dyalog'

# Run the Dyalog instance in this thread
p=Popen([dyalog, b'-script'], stdin=PIPE, preexec_fn=os.setpgrp)
s=script%(pystr(ipcpath),pystr(path),inf,outf)
p.communicate(input=s.encode('utf8'))
p = Popen([dyalog], stdin=PIPE, preexec_fn=os.setpgrp)
s = script % (pystr(ipcpath), pystr(path), inf, outf)
p.communicate(input=s.encode("utf8"))

def cyg_convert_path(path, type):
return Popen([b"cygpath",type,path],stdout=PIPE).communicate()[0].split(b"\n")[0]
Expand Down

0 comments on commit 3f5a00d

Please sign in to comment.