| … | |
… | |
| 38 | |
38 | |
| 39 | ################################################## |
39 | ################################################## |
| 40 | # configuration section for client |
40 | # configuration section for client |
| 41 | ################################################## |
41 | ################################################## |
| 42 | |
42 | |
|
|
43 | |
| 43 | # Use address to WeBWorK code library where WebworkClient.pm is located. |
44 | # Use address to WeBWorK code library where WebworkClient.pm is located. |
| 44 | use lib '/opt/webwork/webwork2/lib'; |
45 | use lib '/opt/webwork/webwork2/lib'; |
| 45 | use Crypt::SSLeay; # needed for https |
46 | use Crypt::SSLeay; # needed for https |
| 46 | use WebworkClient; |
47 | use WebworkClient; |
| 47 | |
48 | |
| … | |
… | |
| 52 | |
53 | |
| 53 | ############################################################ |
54 | ############################################################ |
| 54 | # configure the local output file and display command !!!!!!!! |
55 | # configure the local output file and display command !!!!!!!! |
| 55 | ############################################################ |
56 | ############################################################ |
| 56 | |
57 | |
|
|
58 | |
| 57 | # Path to a temporary file for storing the output of renderProblem.pl |
59 | # Path to a temporary file for storing the output of renderProblem.pl |
| 58 | use constant TEMPOUTPUTFILE => '/Users/gage/Desktop/renderProblemOutput.html'; |
60 | use constant TEMPOUTPUTFILE => '/Users/gage/Desktop/renderProblemOutput.html'; |
| 59 | |
61 | |
| 60 | # Command line for displaying the temporary file in a browser. |
62 | # Command line for displaying the temporary file in a browser. |
| 61 | use constant DISPLAY_COMMAND => 'open -a firefox '; #browser opens tempoutputfile above |
63 | use constant DISPLAY_COMMAND => 'open -a firefox '; #browser opens tempoutputfile above |
| 62 | # use constant DISPLAY_COMMAND => "open -a 'Google Chrome' "; |
64 | # use constant DISPLAY_COMMAND => "open -a 'Google Chrome' "; |
| 63 | |
65 | |
| 64 | ############################################################ |
66 | ############################################################ |
| 65 | |
67 | |
| 66 | my $use_site; |
68 | my $use_site; |
| 67 | $use_site = 'test_webwork'; # select a rendering site |
69 | $use_site = 'test_webwork'; # select a rendering site |
| 68 | #$use_site = 'local'; # select a rendering site |
70 | #$use_site = 'local'; # select a rendering site |
| 69 | #$use_site = 'rochester_test'; # select a rendering site |
71 | #$use_site = 'rochester_test'; # select a rendering site |
| 70 | |
72 | |