def status(self):
        is_locked = False
        try:
            self.lock_fd = open(self.LOCK_FILE, 'w+')
            fcntl.flock(self.lock_fd, fcntl.LOCK_EX | fcntl.LOCK_NB)
            fcntl.flock(self.lock_fd, fcntl.LOCK_UN)
        except IOError, exc_value:
            if exc_value[0] == 11:
                is_locked = True

        state = {
            'IS_LOCKED': True if is_locked else False,
            'LOCK_FILE': self.LOCK_FILE,
            'STOP_UPDATE_FILE_EXISTS': (
                True if os.path.exists(self.STOP_UPDATE_FILE) else False
            ),
            'STOP_UPDATE_FILE': self.STOP_UPDATE_FILE,
            'STAGE_DIR_EXISTS': (
                True if os.path.exists(self.STAGE_DIR) else False
            ),
            'STAGE_DIR': self.STAGE_DIR,
            'PROD_DIR_EXISTS': (
                True if os.path.exists(self.PROD_DIR) else False
            ),
            'PROD_DIR': self.PROD_DIR,
            'LAST_RUN_FILE': self.LAST_RUN_FILE,
        }

        for k, v in state.iteritems():
            print '{0}={1}'.format(k, v)
Print the status of the build system
dataset/ETHPy150Open mozilla/inventory/mozdns/mozbind/builder.py/DNSBuilder.status