I just started using Python's ConfigFile.SafeConfigParser class to parse a config file that contains variable definitions and references. It works nicely, but I can't find an explanation for the weird syntax for a variable reference:
BASEPATH = C:\Users\me\x
SOME_FILE_PATH = %(BASEPATH)s\a
# Yields C:\Users\me\x\a
What's the 's' for? Are there other characters that make the variable behave differently?