Ignore:
Timestamp:
04/04/11 16:51:28 (8 years ago)
Author:
aspidites
Message:

Patch by Aspidites: Game now loads if launched from a different directory. Just need to remove relative paths from xml files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/game/parpg/settings.py

    r828 r833  
    130130        and the options defined within those sections. 
    131131    """ 
    132     def __init__(self, system_path='', user_path='', settings_path='', suffix='.cfg'): 
     132    def __init__(self, settings_path='', system_path='', user_path='', suffix='.cfg'): 
    133133        """ initializes a new settings object. If no paths are given, they are 
    134134            guessed based on whatever platform the script was run on. 
     
    326326        return self.paths['user'] 
    327327 
     328    @property 
     329    def settings_path(self): 
     330        return self.paths['settings'] 
     331 
    328332DEFAULT_SETTINGS = """\ 
    329333[fife] 
     334#------------------------------------------------------------------------------ 
    330335# Options marked with ? are untested/unknown 
    331336 
     
    400405 
    401406[parpg] 
     407#------------------------------------------------------------------------------ 
    402408 
    403409# System subdirectory to load maps from (path) 
Note: See TracChangeset for help on using the changeset viewer.