I would like to see whether a file is on the desktop in Mac OS and I write the code:
if path.exists('~/Desktop/AZDif.png'):
print 'Yes'
else:
print 'No, the file is not there'
I see the file is not in the Desktop while it was actually there. How to write the code properly ?