I am trying to use my RaspberryPi as a photoviewer, using the thousands of photo's from my NAS. I've build python scripts to show a random selection of the photo's. The NAS is not allways up, so my script checks if the NAS can be reached and then copies 100 random photo's to the local disc. On a Windows pc I made the connection to the NAS using smb.SMBConnection, from the anaconda lib. But on the pi I have to use another kind of connecting lib. I looked at SAMBA, but I can't find if I can use the SAMBA lib from Python or how. Also I looked at fstab to mount the path, but during BOOT the NAS is never up, so I'm affraid this would bring errors and if the NAS is turned on later, the pi wouldn't see the connection without reboot.
Does anybody have an idea to achive this?