(self, filename)
return json_obj
Load container json from a file in the image TAG directory
        that has been previously selected via cd_imagerepo()
        or if the file starts with '/' from that specific file.
Load container json from a file in the image TAG directory
        that has been previously selected via cd_imagerepo()
        or if the file starts with '/' from that specific file.
Load container json from a file in the image TAG directory that has been previously selected via cd_imagerepo () or if the file starts with / from that specific file .
def load_json(self, filename):
        """Load container json from a file in the image TAG directory
        that has been previously selected via cd_imagerepo()
        or if the file starts with '/' from that specific file.
        """
        if filename.startswith('/'):
            in_filename = filename
        else:
            if not (self.cur_repodir and self.cur_tagdir):
                return False
            if not os.path.exists(self.cur_repodir):
                return False
            if not os.path.exists(self.cur_tagdir):
                return False
            in_filename = self.cur_tagdir + '/' + filename
        json_obj = None
        infile = None
        try:
            infile = open(in_filename, 'r')
            json_obj = json.load(infile)
        except (IOError, OSError, AttributeError, ValueError, TypeError):
            pass
        if infile:
            infile.close()
        return json_obj
def load_json ( self , filename ) : if filename . startswith ( '/' ) : in_filename = filename else : if not ( self . cur_repodir and self . cur_tagdir ) : return False if not os . path . exists ( self . cur_repodir ) : return False if not os . path . exists ( self . cur_tagdir ) : return False in_filename = self . cur_tagdir + '/' + filename json_obj = None infile = None try : infile = open ( in_filename , 'r' ) json_obj = json . load ( infile ) except ( IOError , OSError , AttributeError , ValueError , TypeError ) : pass if infile : infile . close ( ) return json_obj