tshirtman/ultimate-smash-friends — pull request #1 by aspidites (2011-11-06 20:35:51+00:00)
Title: Updated config system [beta]

- fully documented!
- can be run as a standalone script to generate a new system-wide config
- "CONFIG.section['option'] = value" syntax is repaced with:
"CONFIG.section.option = value" syntax
- in cases where "CONFIG.section[variable]" was used, it was replaced with:
"getattr(CONFIG.section, variable)"
- update method can be used to resolve issue #762583
- to ensure correct paths are used, Config should be invoked by using:
"from usf.loaders.get_config()" instead of instanciating the Config
object directly ("Config()").
- refactored main.py slightly
- simplified ultimate-smash-friends launch script as well
- fun fact, the game can be started from unix console with: "python2 -m usf.main"
- kept the launcher script as a python script for cross-platform compatibility
- setup script automatically generates a new default system config
- if new options are added to the game, add them to config.py's DEFAULT_CONFIG,
**NOT** directly to system.cfg

- the utilities directory hasn't been fully tested for regressions, but other aspects of the game have