Skip to content

Commit

Permalink
avoid potential script file name conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
littlemine committed Sep 27, 2024
1 parent d32b26e commit 314b3a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/PyZpc/pyzfx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ struct PyZfx : INode {

if (has_input("code")) { // path.empty()
auto code = get_input2<std::string>("code");
auto tmpFile = zs::abs_exe_directory() + "/pyzfx.py";
auto tmpFile = zs::abs_exe_directory() + "/__pyzfx__zstmp.py";
if (std::FILE* f = std::fopen(tmpFile.c_str(), "w")) {
std::fwrite(code.data(), sizeof(char), code.size(), f);
std::fclose(f);
Expand Down

0 comments on commit 314b3a4

Please sign in to comment.