Perform any device specific initialization. Called after the device is detected but before any other functions that communicate with the device. For example: For devices that present themselves as USB Mass storage devices, this method would be responsible for mounting the device or if the device has been automounted, for finding out where it has been mounted. The base class within USBMS device.py has a implementation of this function that should serve as a good example for USB Mass storage devices.
Reimplemented from calibre::devices::interface::DevicePlugin.
00554 : time.sleep(5) self._main_prefix = self._card_a_prefix = self._card_b_prefix = None if islinux: try: self.open_linux() except DeviceError: time.sleep(7) self.open_linux() if iswindows: try: self.open_windows() except DeviceError: time.sleep(3) self.open_windows() if isosx: try: self.open_osx() except DeviceError: time.sleep(3) self.open_osx() def eject_windows(self):