Changeset 819


Ignore:
Timestamp:
03/14/11 18:50:01 (8 years ago)
Author:
aspidites
Message:

Patch by Aspidites:

  • changed default values for user_path and system_path
File:
1 edited

Legend:

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

    r818 r819  
    129129        and the options defined within those sections. 
    130130    """ 
    131     def __init__(self, system_path=None, user_path=None, suffix='.cfg'): 
     131    def __init__(self, system_path='', user_path='', suffix='.cfg'): 
    132132        """ initializes a new settings object. If no paths are given, they are 
    133133            guessed based on whatever platform the script was run on. 
     
    163163        self.settings_file = '' 
    164164 
    165         if system_path is None and user_path is None: 
     165        if not system_path and not user_path: 
    166166            # use platform-specific values as paths 
    167167            self.paths = {} 
Note: See TracChangeset for help on using the changeset viewer.