Skip to content

Commit

Permalink
Export: Drop Path::BuildTemporaryFileName
Browse files Browse the repository at this point in the history
  • Loading branch information
jschueller committed Nov 26, 2024
1 parent 8ae1ae6 commit 8385e06
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion otfmi/function_exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,8 @@ def _write_cwrapper_cxx(self):
#include <openturns/OT.hxx>
#include <openturns/XMLStorageManager.hxx>
#include <fstream>
#include <filesystem>
using namespace OT;
const char xml_data[] = { {{ xml_data_bin }} };
Expand All @@ -398,7 +400,7 @@ def _write_cwrapper_cxx(self):
if (!function.getEvaluation().getImplementation()->isActualImplementation())
{
Study study;
const String fileName = Path::BuildTemporaryFileName("function.xml");
const String fileName = (std::filesystem::temp_directory_path() / "function.xml").string();
std::ofstream xmlFile(fileName, std::ios::out | std::ios::binary);
if (xmlFile.good())
{
Expand Down

0 comments on commit 8385e06

Please sign in to comment.