Where is obspython installed? (so my IDE can see it)

BobbyTables

New Member
It seems OBS doesn't install the obspython module like a normal python module which means my IDE (VSCode) can't see it.

Where can I point my IDE so it recognizes the obspython module and its contents? Anybody else use VSCode for writing OBS Python scripts?
 

dodgepong

Administrator
Forum Admin
It isn't installed to the system, it's a module that's loaded up as part of the OBS runtime.
 

BobbyTables

New Member
It isn't installed to the system, it's a module that's loaded up as part of the OBS runtime.

I asked on the Discord and apparently this is not correct (I'm pretty sure the python file has to exist somewhere anyhow for it to function given that OBS does just use your own regular old run of the mill Python interpreter) - the obspython.py file is located at "C:\Program Files\obs-studio\data\obs-scripting\64bit". Pointing the IDE/editor to this directory (in my case, setting "python.analysis.extraPaths" in vscode)
allows it to properly see the module's contents.
 
Top