images in system images directory | topic started 11/8/2002; 6:00:05 PM last post 11/12/2002; 2:51:46 PM |
|
|
|
|
|
Michael Gage - Re: images in system images directory 11/12/2002; 2:51:46 PM (reads: 1316, responses: 0) |
Hi John, We can do that, but for now, while things are being stabilized, adding it to the webworkCourse.ph file is an easy way to make the URL available without changing the core of the code base. It's also pretty easy to transmit to others that want to try it: As Arnie describes above: Add the line: $PG_environment{'systemImagesURL'} = $imagesURL; to webworkCourse.ph near the bottom. Then within your macros file use: $main::systemImagesURL to get the value of this variable. (For examples see the $PG_environment{PROBLEM_GRADER_TO_USE} = 'avg_problem_grader'; line or the line $PG_environment{'PRINT_FILE_NAMES_FOR'} = ['apizer','gage']; which are already in the webworkCourse.ph file, possibly commented out. This also allows for the possibility that systemImageURL could be customized on a course by course basis. One other nice thing about this mechanism is that it allows you to add environment variables to your course (or your development course) while insuring that you can't conflict with anyone else's course running on the same system. -- Mike |