On 23/10/2012 21:42, Tomas Doran wrote:
On 23 Oct 2012, at 12:04, Lyle wrote:
IIS also doesn't have the pwd as the folder where the script is running. So you 
usually need to do:

use FindBin qw ($RealBin $RealScript);
use lib $FindBin::RealBin;
chdir $RealBin;

Otherwise you get issues when people try to open files with a relative path.

This is normal in other web servers also.

Doing that is broken, we provide $app->path_to so you don't ever have to do 

How is it broken?


List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/

Reply via email to