Skip to content

Commit

Permalink
Fix Windows compile errors.
Browse files Browse the repository at this point in the history
Signed-off-by: Joey Kleingers <joey.kleingers@bluequartz.net>
  • Loading branch information
joeykleingers committed Jan 16, 2024
1 parent d998426 commit 8d5ba6d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ inline Result<> WritePythonPluginFiles(const std::filesystem::path& outputDirect
}
auto outputPath = pluginRootPath / "Plugin.py";
{
AtomicFile tempFile(outputPath, true);
AtomicFile tempFile(outputPath.string(), true);
{
// Scope this so that the file closes first before we then 'commit' with the atomic file
std::ofstream fout(tempFile.tempFilePath(), std::ios_base::out | std::ios_base::binary);
Expand All @@ -388,7 +388,7 @@ inline Result<> WritePythonPluginFiles(const std::filesystem::path& outputDirect
// Write the __init__.py file
outputPath = pluginRootPath / "__init__.py";
{
AtomicFile initTempFile(outputPath, true);
AtomicFile initTempFile(outputPath.string(), true);
{
// Scope this so that the file closes first before we then 'commit' with the atomic file
std::ofstream fout(initTempFile.tempFilePath(), std::ios_base::out | std::ios_base::binary);
Expand Down

0 comments on commit 8d5ba6d

Please sign in to comment.