I have the code below and it works fine with the IDLE; however, it is not working with T.C.
myPath = 'O:\\myDir' #this is my mapped network drive
Can someone please shed a light!
What happens when you try it?
I got error message:
Python runtime error.
[WinError3] The system cannot find the specific path specified: 'O:\\\\'
If you hard code the path in the os.chdir line, does it work? That will tell you if it is a syntax problem with the second line or a permissions problem and TestComplete can't get to that directory.
Hardcoded is not working either. For example:
It works fine when running with IDLE, but not with T.C. and I don't know why.How do know if it's a permission problem with T.C?
Are you able to browse to that folder and open the file from the machine where TC is installed?
Yes, I can. I am an admin of the system where T.C. is installed.
I used IDLE on the same machine, and did not have any problem.
Can we see your actual code please? It's hard to tell what's going on from made up examples.