1
__cdrom_devices_map__ = {
4
'darwin': '/dev/disk1',
6
'openbsd': '/dev/rcd0r',
7
'default': '/dev/cdrom'
10
__dvd_devices_map__ = {
13
'darwin': '/dev/rdiskN',
14
'freebsd': '/dev/cd0',
15
'openbsd': '/dev/rcd0r',
19
def __default_cdrom_device__(ctx):
20
default = __cdrom_devices_map__['default']
21
return __cdrom_devices_map__.get(ctx.env.DEST_OS, default)
23
def __default_dvd_device__(ctx):
24
default = __dvd_devices_map__['default']
25
return __dvd_devices_map__.get(ctx.env.DEST_OS, default)
28
ctx.define('DEFAULT_DVD_DEVICE', __default_dvd_device__(ctx))
29
ctx.define('DEFAULT_CDROM_DEVICE', __default_cdrom_device__(ctx))