Skip to content

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

Closed

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

Activity

  1. self-assigned this
    on Oct 1, 2022
  2. added a commit that references this issue on Oct 1, 2022
    85ef786
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions