[Tutor] accessing the CD rom
dn
PyTutor at DancesWithMice.info
Tue Nov 24 20:51:29 EST 2020
> I was wondering if anyone has any recommendations for modules or methods
> for accessing the disk drive?
>
> I am using windows and have had very little luck installing the pycdio
> library and it appears the cd module was taken out in python 2.6?
>
>
> To be clear I'm looking to:
>
> 1. Check if there is a CD is the drive.
>
> 2. Eject the drive.
>
> 3. Play the tracks from the drive.
>
>
> The third I'm able to handle already, the thing I'm not sure is how to
> check for the drive and, then, to eject it.
From the choice of language above, MS-Win is assumed. I don't use it,
so won't make a specific recommendation. However, a quick web-search
offered several alternatives:
https://duckduckgo.com/?q=python+eject+(cd+OR+dvd)
--
Regards =dn
More information about the Tutor
mailing list