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/filebrowser.py

    r809 r810  
    4848         
    4949        self.extensions = extensions 
    50         self.path = os.path.join(self.settings.fife.UserDataDirectory, 
     50        self.path = os.path.join(self.settings.paths['user'], 
    5151                                 self.settings.parpg.SavesDirectory) 
    5252        self.dir_list = [] 
Note: See TracChangeset for help on using the changeset viewer.