My script uses os.listdir to get a list of directories to use later for batch analysis.
when running
mypath='//home//user//Documents//data'
datalist=os.listdir(mypath)
in console, I get the correct answer.
However, when I use the same code as a part of the script, python falls over on the datalist
line
FileNotFoundError: [Errno 2] No such file or directory: '//home//user//Documents//data//'