I'm a casual programmer (i.e., I'm no longer a professional, I just program for fun or for my own projects), usually in Python (although I don't think this is a Python-specific question).

I'm writing a program that catalogs CDROMs, and need to go through the directory of the CDROM given the device.

On Windows, I use something like

Code:
startpoint="D:/"
for (root, dirs, files) in os.walk(startpoint):
  (stuff)
Is there an equivalent starting point in Linux?

I've tried
Code:
startpoint="/dev/sr0"
and
startpoint="/dev/sr0/"
but no luck.

What does work is
Code:
startpoint="/media/VOLUMENAME"
where VOLUMENAME is the name of the mounted CDROM volume; but I need to be able to do this without knowing the volume name.

Any ideas?