From 91681c2461ac7f518d49a3f139caf221ae4d42c0 Mon Sep 17 00:00:00 2001 From: Dave Olsen Date: Sun, 3 Jul 2016 21:33:53 -0400 Subject: [PATCH] adding directory separator support --- core/console | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/console b/core/console index 54203cb..db972da 100644 --- a/core/console +++ b/core/console @@ -20,14 +20,14 @@ if (!function_exists("json_decode")) { } // set-up the project base directory -$baseDir = __DIR__."/../"; +$baseDir = __DIR__.DIRECTORY_SEPARATOR."..".DIRECTORY_SEPARATOR; // auto-load classes -if (file_exists($baseDir."vendor/autoload.php")) { - require($baseDir."vendor/autoload.php"); +if (file_exists($baseDir."vendor".DIRECTORY_SEPARATOR."autoload.php")) { + require($baseDir."vendor".DIRECTORY_SEPARATOR."autoload.php"); } else { print "it doesn't appear that pattern lab has been set-up yet...\n"; - print "please install pattern lab's dependencies by typing: php core/bin/composer.phar install...\n"; + print "please install pattern lab's dependencies by typing: composer install...\n"; exit; }