(self)
Checks prerequisites for image building.
Checks prerequisites for image building.
Checks prerequisites for image building .
def CheckRequirements(self):
    """Checks prerequisites for image building."""
    supported_versions = ['10.6', '10.7', '10.8', '10.9']
    if self.os_version not in supported_versions:
      print 'You\'re running an unsupported version of OS X.'
      sys.exit()
    if not os.path.exists(os.path.join(self.cwd, self.installer_choices)):
      print ('Could not find %s - please reinstall can_haz_image!' %
             self.installer_choices)
      sys.exit()
def CheckRequirements ( self ) : supported_versions = [ '10.6' , '10.7' , '10.8' , '10.9' ] if self . os_version not in supported_versions : print 'You\'re running an unsupported version of OS X.' sys . exit ( ) if not os . path . exists ( os . path . join ( self . cwd , self . installer_choices ) ) : print ( 'Could not find %s - please reinstall can_haz_image!' % self . installer_choices ) sys . exit ( )