Enable developer mode in Python Script plugin

I am looking to enable the Developer mode for python scripting with unreal.PythonScriptPluginSettings

https://api.unrealengine.com/INT/Pyt…nSettings.html

This is my code, i must be missing something obvious:


 
 unreal.PythonScriptPluginSettings.set_editor_property(developer_mode, 1) 

and the error:


LogPython: Error:     unreal.PythonScriptPluginSettings.set_editor_property(developer_mode, 1)
LogPython: Error: NameError: name 'developer_mode' is not defined

Ok this seems to be the correct code!


 
 upsps = unreal.PythonScriptPluginSettings()    
 upsps.set_editor_property("developer_mode", 1)    
 debug = upsps.get_editor_property("developer_mode")    
 print(debug) 

There is now an option to enable developer mode in Project Settings>Plugins>Python
it will generate a python stub file in \Intermediate\PythonStub\