Skip to content

[Bug] sys.path is not accessible when subprocess is called in pynml.execute_command_in_dir_with_realtime_output #440

@adampdp

Description

@adampdp

Describe the bug

in pynml.execute_command_in_dir_with_realtime_output(),

sys.path is not accessible when subprocess is called. env['PYTHONPATH'] in subprocess overrides sys.path.

sys.path should be added to the env['PYTHONPATH'] before passing to subprocess for correct module import. See the link below:

python/cpython#105889

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions