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

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

src/a/m/amitools-HEAD/amitools/fs/blkdev/BlkDevFactory.py   amitools(Download)
import os
import os.path
import stat
import struct
from ADFBlockDevice import ADFBlockDevice
    # create blkdev
    if t == self.TYPE_ADF:
      blkdev = ADFBlockDevice(img_file, read_only)
      blkdev.open()
    elif t == self.TYPE_HDF:
    # create blkdev
    if t == self.TYPE_ADF:
      blkdev = ADFBlockDevice(img_file)
      blkdev.create()
    else: