Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
cff3454e
Commit
cff3454e
authored
Jan 14, 1992
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use $TMPDIR if it is set in the environment.
parent
a61ff7b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
Lib/tempfile.py
Lib/tempfile.py
+6
-1
No files found.
Lib/tempfile.py
View file @
cff3454e
...
...
@@ -5,11 +5,16 @@ import path
# Changeable parameters (by clients!)...
# XXX Should the environment variable $TMPDIR override tempdir?
tempdir
=
'/usr/tmp'
template
=
'@'
# Use environment variable $TMPDIR to override default tempdir.
if
posix
.
environ
.
has_key
(
'TMPDIR'
):
# XXX Could check that it's a writable directory...
tempdir
=
posix
.
environ
[
'TMPDIR'
]
# Counter for generating unique names
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment