Show More
@@ -33,7 +33,12 b' def connectpipe(path=None, extraargs=())' | |||
|
33 | 33 | cmdline += [b'-R', path] |
|
34 | 34 | cmdline.extend(extraargs) |
|
35 | 35 | |
|
36 | server = subprocess.Popen(cmdline, stdin=subprocess.PIPE, | |
|
36 | def tonative(cmdline): | |
|
37 | if os.name != r'nt': | |
|
38 | return cmdline | |
|
39 | return [arg.decode("utf-8") for arg in cmdline] | |
|
40 | ||
|
41 | server = subprocess.Popen(tonative(cmdline), stdin=subprocess.PIPE, | |
|
37 | 42 | stdout=subprocess.PIPE) |
|
38 | 43 | |
|
39 | 44 | return server |
General Comments 0
You need to be logged in to leave comments.
Login now