Skip to content

mne.utils.run_subprocess() inserts undesired empty lines in stdout #11218

@hoechenberger

Description

@hoechenberger

Description of the problem

When using mne.utils.run_subprocess(), each line printed to stdout by the subprocess will be printed with an additional empty line immediately after.

Steps to reproduce

# subp.py
print('foo')
print('bar')
# main.py
from mne.utils import run_subprocess

run_subprocess(command=['python', 'subp.py'])

Run via:

python main.py

Expected results

foo
bar

Actual results

foo

bar

Additional information

This is with main

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions