Skip to content

Commit ec5acb2

Browse files
committed
Control temp dir
1 parent 3297448 commit ec5acb2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pb_env.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ RecursiveDirectoryDelete(const char* dir)
210210
EnvironmentManager::EnvironmentManager()
211211
{
212212
char tmp_dir_template[PATH_MAX + 1];
213-
strcpy(tmp_dir_template, "/tmp/python_env_XXXXXX");
213+
strcpy(tmp_dir_template, std::getenv("PYTHON_ENV_TMPDIR"));
214214

215215
char* env_path = mkdtemp(tmp_dir_template);
216216
if (env_path == nullptr) {

0 commit comments

Comments
 (0)