def set_environment_variables(self, version):
        if not version:
            return

        # set the $JOB variable to the parent of version.full_path
        logger.debug('version: %s' % version)
        logger.debug('version.path: %s' % version.absolute_path)
        logger.debug('version.filename: %s' % version.filename)
        logger.debug('version.full_path: %s' % version.absolute_full_path)
        logger.debug(
            'version.full_path (calculated): %s' %
            os.path.join(
                version.absolute_full_path,
                version.filename
            ).replace("\\", "/")
        )
        job = str(version.absolute_path)
        hip = job
        hip_name = os.path.basename(str(version.absolute_full_path))

        logger.debug('job     : %s' % job)
        logger.debug('hip     : %s' % hip)
        logger.debug('hipName : %s' % hip_name)

        self.set_environment_variable('JOB', job)
        self.set_environment_variable('HIP', hip)
        self.set_environment_variable('HIPNAME', hip_name)
sets the environment variables according to the given Version
dataset/ETHPy150Open eoyilmaz/anima/anima/env/houdini.py/Houdini.set_environment_variables