You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

Lib-tmpfile.py.patch 499 B

12345678910111213
  1. diff --git a/Lib/tempfile.py b/Lib/tempfile.py
  2. index 531cbf32f1..dae57e22bd 100644
  3. --- a/Lib/tempfile.py
  4. +++ b/Lib/tempfile.py
  5. @@ -170,7 +170,7 @@ def _candidate_tempdir_list():
  6. _os.path.expandvars(r'%SYSTEMROOT%\Temp'),
  7. r'c:\temp', r'c:\tmp', r'\temp', r'\tmp' ])
  8. else:
  9. - dirlist.extend([ '/tmp', '/var/tmp', '/usr/tmp' ])
  10. + dirlist.extend([ '@TERMUX_PREFIX@/tmp' ])
  11. # As a last resort, the current directory.
  12. try: