Skip to content
Snippets Groups Projects
Commit bda95649 authored by Daniel Brown's avatar Daniel Brown
Browse files

fixing windows temp file error

parent b16e5fdf
No related branches found
No related tags found
No related merge requests found
......@@ -1062,7 +1062,7 @@ class kat(object):
# create a kat file which we will write the script into
if self.__tempname is None:
katfile = tempfile.NamedTemporaryFile(mode ='w', suffix=".kat", dir=self.__tempdir)
katfile = tempfile.NamedTemporaryFile(mode ='w', suffix=".kat", dir=self.__tempdir, delete=False)
else:
filepath =os.path.join(self.__tempdir, self.__tempname+".kat" )
katfile = open( filepath, 'w' )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment