예제 #1
0
def get_chapter_module_files(conf_data):
  ''' get a dictionary where the keys are the chapter names and the values are 
      the paths to the rst files of the modules in the chapter
  '''
  files = OrderedDict()
  odsa_dir = get_odsa_dir()
  for chapter, modules in conf_data['chapters'].iteritems():
    files[chapter] = []
    for module in modules.keys():
      module = module.replace('/', os.sep)
      files[chapter].append(os.path.join(os.path.abspath('{0}RST{2}{1}{2}'.format(odsa_dir, conf_data['lang'], os.sep)), module + ".rst"))
  return files
예제 #2
0
def get_chapter_module_files(conf_data):
  ''' get a dictionary where the keys are the chapter names and the values are 
      the paths to the rst files of the modules in the chapter
  '''
  files = OrderedDict()
  odsa_dir = get_odsa_dir()
  for chapter, modules in conf_data['chapters'].iteritems():
    files[chapter] = []
    for module in modules.keys():
      module = module.replace('/', os.sep)
      files[chapter].append(os.path.join(os.path.abspath('{0}RST{2}{1}{2}'.format(odsa_dir, conf_data['lang'], os.sep)), module + ".rst"))
  return files