Saturday, 1 June 2013

Python - snippetscream fix on Windows

snippetscream\_186.py
Replace
self.tmpfile = tempfile.NamedTemporaryFile()
To
self.tmpfile = tempfile.NamedTemporaryFile(delete=False)
# If delete is true (the default), the file is deleted as soon as it is closed. (New in version 2.6: The delete parameter.) [1]
Reference: http://docs.python.org/2/library/tempfile.html#tempfile.NamedTemporaryFile
Download: https://github.com/shaunsephton/django-snippetscream

No comments :

Post a Comment