def setDecoderPath(decoder_path):
 paths = []
 paths.append(decoder_path)
 for (root, dirs, files) in os.walk(decoder_path):
  [dirs.remove(d) for d in dirs if d.startswith('.')]
  for d in sorted(dirs):
   paths.append(os.path.join(root, d))
 return paths

def setDecoderPath ( decoder_path ) : paths = [ ] paths . append ( decoder_path ) for ( root , dirs , files ) in os . walk ( decoder_path ) : [ dirs . remove ( d ) for d in dirs if d . startswith ( '.' ) ] for d in sorted ( dirs ) : paths . append ( os . path . join ( root , d ) ) return paths
set the base decoder path .