From 314b3a4431c4dd8558ce14fd3ef2ef9f41dfc3e9 Mon Sep 17 00:00:00 2001 From: littlemine Date: Sat, 28 Sep 2024 03:08:06 +0800 Subject: [PATCH] avoid potential script file name conflict --- projects/PyZpc/pyzfx.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/PyZpc/pyzfx.cpp b/projects/PyZpc/pyzfx.cpp index 8804b873d0..fd98b29f14 100644 --- a/projects/PyZpc/pyzfx.cpp +++ b/projects/PyZpc/pyzfx.cpp @@ -191,7 +191,7 @@ struct PyZfx : INode { if (has_input("code")) { // path.empty() auto code = get_input2("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);