Ignore:
Timestamp:
03/09/11 05:23:21 (8 years ago)
Author:
aspidites
Message:

Patch by Aspidites

  • Removed SystemDataDirectory? and UserDataDirectory?
    • it is the the settings module's job to keep track of this sort of thing, not fife or PARPG's
    • consequently, setting.py's command line interface became simple
    • this will also prevent those "I generated a settings file but PARPG doesnt run" complaints
    • I think I'm going to have some helper methods to generate platform-specific paths at run-time
  • User data directory is now properly created
  • added platform_paths(system) which returns the platform-specific paths for the given system
  • if no system is given, it gives the paths for the system that the script was run on
  • changed logic of settings.py so that it is not required to pass a path.
  • not passing a path invokes paltform_paths
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/active/character_customization/game/parpg/controllerbase.py

    r809 r810  
    8484        """Reset cursor to default image. 
    8585           @return: None""" 
    86         image = os.path.join(self.model.settings.fife.SystemDataDirectory, 
     86        image = os.path.join(self.model.settings.paths['system'], 
    8787                             self.model.settings.parpg.GuiDirectory, 
    8888                             self.model.settings.parpg.CursorDirectory, 
Note: See TracChangeset for help on using the changeset viewer.