--- loncom/homework/convertjme.pl 2005/05/25 22:31:51 1.15 +++ loncom/homework/convertjme.pl 2011/07/04 09:24:54 1.16 @@ -2,7 +2,7 @@ # The LearningOnline Network with CAPA # Dynamically converts JME strings into either a png or ps file. # -# $Id: convertjme.pl,v 1.15 2005/05/25 22:31:51 albertel Exp $ +# $Id: convertjme.pl,v 1.16 2011/07/04 09:24:54 foxr Exp $ # # Copyright Michigan State University Board of Trustees # @@ -35,7 +35,7 @@ use strict; my $loncapa=1; use lib '/home/httpd/lib/perl'; use LONCAPA::loncgi; - +use LONCAPA; use GD; use PostScript::Simple; @@ -431,7 +431,7 @@ if ($loncapa) { print "Content-type: image/png\n\n"; print $im->png; } elsif ($ps) { - my $psfile = "/home/httpd/perl/tmp/".$id.'.eps'; + my $psfile = LONCAPA::tempdir().$id.'.eps'; $im->output($psfile); print "Content-type: text/html\n\n"; print (<