(project, ext)
return flist, flist_path
Reads files inside the input project directory.
Reads files inside the input project directory.
Reads files inside the input project directory .
def read_files(project, ext):
    """ Reads files inside the input project directory. """
    project_path = os.path.join(os.path.dirname(__file__), project)
    file_list = os.listdir(project_path)
    flist = []
    flist_path = []
    for f in file_list:
        f_path = os.path.join(project_path, f)
        if os.path.isfile(f_path) and f.endswith(ext) and f != "__init__.py":
            flist.append(f.split('.')[0])
            flist_path.append(f_path)
    return flist, flist_path
def read_files ( project , ext ) : project_path = os . path . join ( os . path . dirname ( __file__ ) , project ) file_list = os . listdir ( project_path ) flist = [ ] flist_path = [ ] for f in file_list : f_path = os . path . join ( project_path , f ) if os . path . isfile ( f_path ) and f . endswith ( ext ) and f != "__init__.py" : flist . append ( f . split ( '.' ) [ 0 ] ) flist_path . append ( f_path ) return flist , flist_path