Steven D'Aprano wrote:
But if you might have an external hard drive plugged in, or a USB key, or similar, then you need to find out what the volume name of the mounted CD drive is. That's a good question and I don't have an answer right now. Let me think about it and get back to you.
Well that was easy. You need to query the external tool volname, which should be present on just about any Linux system.
Use the subprocess module to call "volname /dev/cdrom". -- Steven _______________________________________________ Tutor maillist - [email protected] To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
