def __init__(self): JsonDataStore.__init__(self) # Set the data type name for logging clarity (base class functions use this variable) self.data_type = "user settings" self.settings_filename = "openshot.settings" self.default_settings_filename = os.path.join(info.PATH, 'settings', '_default.settings')
def __init__(self): JsonDataStore.__init__(self) self.data_type = "project data" # Used in error messages self.default_project_filepath = os.path.join(info.PATH, 'settings', '_default.project') # Set default filepath to user's home folder self.current_filepath = None # Load default project data on creation self.new()
def __init__(self): JsonDataStore.__init__(self) self.data_type = "project data" # Used in error messages self.default_project_filepath = os.path.join(info.PATH, 'settings', '_default.project') # Set default filepath to user's home folder self.current_filepath = None # Track changes after save self.has_unsaved_changes = False # Load default project data on creation self.new()