Ignore:
Timestamp:
03/12/11 00:34:53 (9 years ago)
Author:
aspidites
Message:

Patch by Aspidites:

-updated all calls to settings.paths to the more readable settings.system_path and settings.user_path properties

  • renamed sys_path to system_path for consistency
File:
1 edited

Legend:

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

    r810 r813  
    6262        self.load_saver = False 
    6363        self.savegame = None 
    64         quests_directory = os.path.join(self.settings.paths['system'], 
     64        quests_directory = os.path.join(self.settings.system_path, 
    6565                                        self.settings.parpg.QuestsDirectory) 
    6666        self.game_state = GameState(quests_dir=quests_directory) 
     
    7979 
    8080        # set values from settings 
    81         maps_file = os.path.join(self.settings.paths['system'],  
     81        maps_file = os.path.join(self.settings.system_path,  
    8282                                 self.settings.parpg.MapsDirectory, 
    8383                                 self.settings.parpg.MapsFile) 
    8484        self.game_state.maps_file = maps_file 
    85         all_agents_file = os.path.join(self.settings.paths['system'], 
     85        all_agents_file = os.path.join(self.settings.system_path, 
    8686                                       self.settings.parpg.MapsDirectory, 
    8787                                       self.settings.parpg.AllAgentsFile) 
    8888        self.all_agents_file = all_agents_file 
    89         objects_dir = os.path.join(self.settings.paths['system'], 
     89        objects_dir = os.path.join(self.settings.system_path, 
    9090                                    self.settings.parpg.ObjectsDirectory) 
    9191        self.objects_directory = objects_dir 
     
    9393                                      self.settings.parpg.ObjectDatabaseFile) 
    9494        self.object_db_file = object_db_file 
    95         dialogues_dir = os.path.join(self.settings.paths['system'],  
     95        dialogues_dir = os.path.join(self.settings.system_path,  
    9696                                     self.settings.parpg.DialoguesDirectory) 
    9797        self.dialogues_directory = dialogues_dir 
Note: See TracChangeset for help on using the changeset viewer.