<s> import os <EOL> from bcolz . ctable import ROOTDIRS <EOL> import bquery <EOL> def open ( rootdir , mode = '<STR_LIT:a>' ) : <EOL> """<STR_LIT>""" <EOL> rootsfile = os . path . join ( rootdir , ROOTDIRS ) <EOL> if os . path . exists ( rootsfile ) : <EOL> return bquery . ctable ( rootdir = rootdir , mode = mode ) <EOL> else : <EOL> return bquery . carray ( rootdir = rootdir , mode = mode ) </s>
