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/gui/hud.py

    r809 r810  
    274274            @return: None""" 
    275275        self.stopActions() 
    276         xml_path = os.path.join(self.settings.fife.SystemDataDirectory, 
     276        xml_path = os.path.join(self.settings.paths['system'], 
    277277                                    self.settings.parpg.GuiDirectory, 
    278278                                    'savebrowser.xml') 
     
    319319            @return: None""" 
    320320        self.stopActions() 
    321         xml_path = os.path.join(self.settings.fife.SystemDataDirectory, 
     321        xml_path = os.path.join(self.settings.paths['system'], 
    322322                                    self.settings.parpg.GuiDirectory, 
    323323                                    'loadbrowser.xml') 
Note: See TracChangeset for help on using the changeset viewer.