Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)

        def cd_open():
	if cd.cd > 0:
		cd.open = 1
		return 0
	else:
		try:
                        flags = os.O_RDONLY|os.O_NONBLOCK
			cd.cd = os.open(cd.path, flags)
			trayopen = 0
			return 0
		except:
			cd.status = NODISC
			trayopen = 1
			return 1
        


src/a/c/AccordionMega-HEAD/rtmidi/pkaudio/pk/stereo/cd_logic.py   AccordionMega(Download)
def set_dev(dev='/dev/cdrom'):
	""" Changes the CD device. Makes change. Dances poorly. """
	cd.cd_close()
	cd.cd.path = str(dev)
	cd.cd_open()