Jan-20-2022, 11:58 AM
And two more solutions:
- Make it a raw string by prepending "r". In raw strings a backlslash will not be interpreted.
cmd = r"C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe"
- Use forward slashes instead of backslashes. Python will understand this.