Skip to content

Commit

Permalink
Fix security audit warning for temp directory
Browse files Browse the repository at this point in the history
  • Loading branch information
ejeschke committed Feb 15, 2022
1 parent 4ac5aed commit 12aa39d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ginga/rv/plugins/Reproject.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"""
import os.path
import copy
import tempfile
import numpy as np
#np.set_printoptions(threshold=np.inf)
from astropy.io import fits
Expand Down Expand Up @@ -85,7 +86,7 @@ def __init__(self, fv, fitsimage):
self._split_sizes = [_sz, _sz]

self.count = 1
self.cache_dir = "/tmp"
self.cache_dir = tempfile.gettempdir()
self.img_out = None
self._proj_types = list(_choose.keys())
self._proj_types.sort()
Expand Down

0 comments on commit 12aa39d

Please sign in to comment.