Skip to content

Idea to move from os.system to sp.Popen in os_utils.run :) #532

@p-ortega

Description

@p-ortega

Hey Brioch, Just found this behavior and I reckon it could add to the argument to move os system to subprocess.

Lemme know what do you think

Cheers

Description:
platform: Windows

Running the test from util_tests.py::test_run [pyemu.os_utils.run(echo test)] returns 'exe test' instead of 'test' without raising an exception. This is coming from the function adding .exe to the string if not defined.

I reckon this is where subprocess could come in handy. The same function with subprocess.Popen returns 'file not found'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions