(self)
return current_device, mount_dict
Assign disk locations to disk devices.
Assign disk locations to disk devices.
Assign disk locations to disk devices .
def _get_drives(self):
        """Assign disk locations to disk devices."""
        # always get current device
        current_device = self.get('current-device').upper()
        # build mount dictionary
        mount_list = self.get('mount', False)
        if mount_list is None:
            mount_dict = self._get_default_drives()
            if not current_device:
                current_device = self._get_default_current_device()
        else:
            mount_dict = self._get_drives_from_list(mount_list)
        # directory for bundled BASIC programs accessible through @:
        mount_dict[b'@'] = PROGRAM_PATH
        return current_device, mount_dict
def _get_drives ( self ) : # always get current device current_device = self . get ( 'current-device' ) . upper ( ) # build mount dictionary mount_list = self . get ( 'mount' , False ) if mount_list is None : mount_dict = self . _get_default_drives ( ) if not current_device : current_device = self . _get_default_current_device ( ) else : mount_dict = self . _get_drives_from_list ( mount_list ) # directory for bundled BASIC programs accessible through @: mount_dict [ b'@' ] = PROGRAM_PATH return current_device , mount_dict