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
506 stars 192 forks source link

Upgrade initializiation of PythonEngine to use PyConfig #5294

Open jmarrec opened 2 weeks ago

jmarrec commented 2 weeks ago

Enhancement Request

I had a TODO for this for a while

https://github.com/NREL/OpenStudio/blob/cc1e0bbd6d5cd22d6277a1ca2b14768b90264206/python/engine/PythonEngine.cpp#L74-L75

Py_SetPath was actually removed from 3.13 API

cf https://github.com/NREL/OpenStudio/commit/998e13ea881b9f8a3eae3581ef478ce556ff3677

Detailed Description

https://docs.python.org/3/whatsnew/3.13.html

image

Possible Implementation

https://docs.python.org/3/c-api/init_config.html#c.PyConfig