예제 #1
0
파일: plugin.py 프로젝트: zha0/mac_apt
def LogLibraryVersions(log):
    '''Log the versions of libraries used'''
    log.info('Python version = {}'.format(sys.version))
    log.info('Pytsk  version = {}'.format(pytsk3.get_version()))
    log.info('Pyewf  version = {}'.format(pyewf.get_version()))
    log.info('Pyvmdk version = {}'.format(pyvmdk.get_version()))
    log.info('PyAFF4 version = {}'.format(
        pyaff4._version.raw_versions()['version']))
예제 #2
0
 def test_get_version(self):
   """Tests the get_version function."""
   version = pyvmdk.get_version()
예제 #3
0
 def test_get_version(self):
     """Tests the get_version function."""
     version = pyvmdk.get_version()
예제 #4
0
파일: plugin.py 프로젝트: tajatwal/mac_apt
def LogLibraryVersions(log):
    '''Log the versions of libraries used'''
    log.info('Pytsk version = {}'.format(pytsk3.get_version()))
    log.info('Pyewf version = {}'.format(pyewf.get_version()))
    log.info('Pyvmdk version= {}'.format(pyvmdk.get_version()))
예제 #5
0
# -*- coding: utf-8 -*-
"""The VMDK image file-like object."""

import pyvmdk

from dfvfs.file_io import file_object_io
from dfvfs.lib import errors
from dfvfs.path import factory as path_spec_factory
from dfvfs.resolver import resolver


if pyvmdk.get_version() < '20140421':
  raise ImportWarning('VmdkFile requires at least pyvmdk 20140421.')


class VmdkFile(file_object_io.FileObjectIO):
  """Class that implements a file-like object using pyvmdk."""

  def _OpenFileObject(self, path_spec):
    """Opens the file-like object defined by path specification.

    Args:
      path_spec: the path specification (instance of path.PathSpec).

    Returns:
      A file-like object.

    Raises:
      IOError: if the file-like object could not be opened.
      PathSpecError: if the path specification is incorrect.
    """
예제 #6
0
 def test_get_version(self):
   """Tests the get_version function."""
   version = pyvmdk.get_version()
   self.assertIsNotNone(version)
예제 #7
0
파일: test_v.py 프로젝트: XiaoyuDu/eviplant
import pyvmdk
import pyvhdi

print pyvmdk.get_version()

print pyvhdi.get_version()