def init(self): super().init() widget_settings_dir_cfg = environ.get_path("widget_settings_dir", "") if widget_settings_dir_cfg: # widget_settings_dir is configured via config file set_widget_settings_dir_components(widget_settings_dir_cfg, self.ApplicationVersion) canvas_settings_dir_cfg = environ.get_path("canvas_settings_dir", "") if canvas_settings_dir_cfg: # canvas_settings_dir is configured via config file QSettings.setPath(QSettings.IniFormat, QSettings.UserScope, canvas_settings_dir_cfg) for t in spec: occonfig.register_setting(*t)
def init(self): super().init() for t in spec: occonfig.register_setting(*t)