superleader / django-graphviz

Automatically exported from code.google.com/p/django-graphviz
0 stars 0 forks source link

Fails when no TMP variable set #3

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Fails on _tmpdir = os.environ['TMP'] when no such variable set. Shoud be added 
to instructions and/or provided default value.

Original issue reported on code.google.com by a.chuk...@gmail.com on 28 Jul 2011 at 11:43

GoogleCodeExporter commented 8 years ago
The cause:
File: graphviz/views.py, line no 13.
_tmpdir = os.environ['TMP']

Since I did not have the environment variable set, and i did not want to.. so i 
set it to 
_tmpdir = '/tmp'

(for the uninitiated, this works for linux, for windows try creating some temp 
directory. eg. 'C:\temp')

works like a charm

Original comment by johnsonc...@gmail.com on 25 Oct 2011 at 11:45