Notice that the error is saying that the file 'C:\Desktop\TestScripts\'
could not be found. The filename is getting truncated because '\t'
is a TAB character.
In [156]: print('C:\Desktop\TestScripts\test.py')
C:\Desktop\TestScripts est.py
Use the raw string r'C:\Desktop\TestScripts\test.py'
instead.
In [157]: print(r'C:\Desktop\TestScripts\test.py')
C:\Desktop\TestScripts\test.py