def __init__(self, sources, kwargs):
    InterpreterObject.__init__(self)
    self.sources = sources
    self.validate_sources()
    self.custom_install_dir = kwargs.get('install_dir', None)
    self.custom_install_mode = kwargs.get('install_mode', None)
    if ((self.custom_install_dir is not None) and (not isinstance(self.custom_install_dir, str))):
        raise InterpreterException('Custom_install_dir must be a string.')
def __init__(self, sources, kwargs):
    InterpreterObject.__init__(self)
    self.sources = sources
    self.validate_sources()
    self.custom_install_dir = kwargs.get('install_dir', None)
    self.custom_install_mode = kwargs.get('install_mode', None)
    if ((self.custom_install_dir is not None) and (not isinstance(self.custom_install_dir, str))):
        raise InterpreterException('Custom_install_dir must be a string.')