Fwd: Re: renaming the Psychtoolbox folder

>Hi Denis,
>
>I am in the habit of installing software with a name that
>reflects the current version. This helps me keep track of
>all the various computers we have around the lab.
>For instance, I am still running Psychtoolbox 2.44
>on most of the machines in my lab.
>When I install the update under the name "Psychtoolbox 2.50",
>there are two strange things that break (for no good reason).
>
>First, ... [PsychtoolboxVersion produces an error]
>
>Second, ... [SCREEN.mex gives a warning]
>
>...
>
>This spurious warning could be avoided if you first call
>"which('SCREEN')" or something distinctive like "which('SetClutWaitTest')"
>to discover the true name of the toolbox folder the Psychtoolbox resides in.
>
>-- David Jones
>- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
>Prof. David Jones, Dept of Electrical and Computer Engineering
>McMaster University, 1280 Main Street West, Hamilton, Ontario, CANADA
>email: djones@... phone: (905) 525-9140 ext.24689
>web: www.ece.mcmaster.ca/~djones fax: (905) 524-0340

dear david

as you know, both errors resulted from your renaming of the
Psychtoolbox folder. However, I take your point that, if possible, it
would be nice to cope with that situation.

Following your suggestion, I've written a new PsychOneliner function
called PsychtoolboxRoot that finds the path to the main Psychtoolbox
folder without making any assumptions about folder names, and I've
substituted that for the old hard-coded names in the two places that
you identified and in four others that i found in a global search.

I believe that the entire Psychtoolbox will now function happily even
if the name of the main Psychtoolbox folder is changed. However,
don't change the names of internal folders. some of those names are
still needed.

the new files are enclosed.

could you try them?

best

denis