CHARACTER_LIST_PATH = 'characters/character_list.txt'
FILEPATH_PREFIX = 'characters/'


def get_character_paths():
    """Return a list of all of the filepaths to the XML files for
    playable characters.
    """
    with open(CHARACTER_LIST_PATH) as f:
        character_path_list = [line.rstrip('\n') for line in f]
        return character_path_list

import os


CHARACTER_LIST_PATH = 'characters/character_list.txt'
CHARACTER_SCHEMA_PATH = os.path.join(os.path.dirname(os.path.realpath(
                                                     __file__)),
                                     'character.xsd')
FILEPATH_PREFIX = 'characters/'


def get_character_paths():
    """Return a list of all of the filepaths to the XML files for
    playable characters.
    """
    with open(CHARACTER_LIST_PATH) as f:
        character_path_list = [line.rstrip('\n') for line in f]
        return character_path_list

Add constant for Character Schema file path
Add constant for Character Schema file path

+ import os
+ 
+ 
  CHARACTER_LIST_PATH = 'characters/character_list.txt'
+ CHARACTER_SCHEMA_PATH = os.path.join(os.path.dirname(os.path.realpath(
+                                                      __file__)),
+                                      'character.xsd')
  FILEPATH_PREFIX = 'characters/'
  
  
  def get_character_paths():
      """Return a list of all of the filepaths to the XML files for
      playable characters.
      """
      with open(CHARACTER_LIST_PATH) as f:
          character_path_list = [line.rstrip('\n') for line in f]
          return character_path_list
  
Add constant for Character Schema file path
## Code Before:
CHARACTER_LIST_PATH = 'characters/character_list.txt'
FILEPATH_PREFIX = 'characters/'


def get_character_paths():
    """Return a list of all of the filepaths to the XML files for
    playable characters.
    """
    with open(CHARACTER_LIST_PATH) as f:
        character_path_list = [line.rstrip('\n') for line in f]
        return character_path_list

## Instruction:
Add constant for Character Schema file path
## Code After:
import os


CHARACTER_LIST_PATH = 'characters/character_list.txt'
CHARACTER_SCHEMA_PATH = os.path.join(os.path.dirname(os.path.realpath(
                                                     __file__)),
                                     'character.xsd')
FILEPATH_PREFIX = 'characters/'


def get_character_paths():
    """Return a list of all of the filepaths to the XML files for
    playable characters.
    """
    with open(CHARACTER_LIST_PATH) as f:
        character_path_list = [line.rstrip('\n') for line in f]
        return character_path_list
