**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: https://github.com/python/cpython/issues/105889