code: def persistentRegisterInspector(fullName, fullClassName, pythonPath=''):
      
      registry = InspectorRegistry()
      registry.loadOrInitSettings()
      registry.registerInspector(fullName, fullClassName, pythonPath=pythonPath)
      registry.saveSettings()
docs: Registers an inspector
  
          Loads or inits the inspector registry, register the inspector and saves the settings.
          Important: instantiate a Qt application first to use the correct settings file/winreg.