@jems007:
CALIBRE_TEMP_DIR is used by Calibre for its temporary file directory, and TMPDIR et al are used by generic Python for its temporary file directory.
CALIBRE_TEMP_DIR must be consistent with TMPDIR.
Since c:\temp and c:\tmp are specifically searched by generic Python on Windows platforms, if you do not otherwise use them, then they should be
deleted. That frees Python to find a generic \temp or \tmp on your USB drive.
Per the Python documentation:
Quote:
The default directory is chosen from a platform-dependent list, but the user of the application can control the directory location by setting the TMPDIR, TEMP or TMP environment variables
Python searches a standard list of directories to find one which the calling user can create files in. The list is:
The directory named by the TMPDIR environment variable.
The directory named by the TEMP environment variable.
The directory named by the TMP environment variable.
A platform-specific location:
On Windows, the directories C:\TEMP, C:\TMP, \TEMP, and \TMP, in that order.
On all other platforms, the directories /tmp, /var/tmp, and /usr/tmp, in that order.
As a last resort, the current working directory.
|
DaltonST