NREL / OpenStudio

OpenStudio is a cross-platform collection of software tools to support whole building energy modeling using EnergyPlus and advanced daylight analysis using Radiance.
https://www.openstudio.net/
Other
496 stars 190 forks source link

E+ 24.2.1: Wrap PythonPlugin:SearchPaths #5269

Open bonnema opened 17 hours ago

bonnema commented 17 hours ago

Enhancement Request

Detailed Description

Possible Implementation

joseph-robertson commented 13 hours ago

FYI, PythonPluginInstance currently takes an ExternalFile object, e.g.: https://github.com/NREL/OpenStudio-resources/blob/develop/model/simulationtests/python_plugin.rb#L117-L122.

Then in FT, the PythonPlugin:SearchPaths object is created with a Search Path 1 extensible group pointing to the parent folder of the external file: https://github.com/NREL/OpenStudio/blob/develop/src/energyplus/ForwardTranslator/ForwardTranslatePythonPluginInstance.cpp#L68-L98.

bonnema commented 10 hours ago

Thanks @joseph-robertson. I saw that, but was wanting to add additional paths (to the system Python's site-packages directory) to use 3rd party libraries.