Skip to content

Commit 40a8b04

Browse files
authored
Use temp dir accessor instead of cache variable (#78)
1 parent 31cf1b4 commit 40a8b04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pylink/jlock.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def __init__(self, serial_no):
6565
self.acquired = False
6666
self.fd = None
6767
self.path = None
68-
self.path = os.path.join(tempfile.tempdir, self.name)
68+
self.path = os.path.join(tempfile.gettempdir(), self.name)
6969

7070
def __del__(self):
7171
"""Cleans up the lockfile instance if it was acquired.

0 commit comments

Comments
 (0)