Skip to content

Commit 0c72732

Browse files
committed
Try to fix 2.6 execv with NULL bytes
1 parent 6b0f28e commit 0c72732

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tmuxp/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def run_before_script(script_file):
3232
"""Function to wrap try/except for subprocess.check_call()."""
3333
try:
3434
proc = subprocess.Popen(
35-
shlex.split(script_file),
35+
shlex.split(script_file.encode('ascii')),
3636
stderr=subprocess.PIPE
3737
)
3838
proc.wait()

0 commit comments

Comments
 (0)