Skip to content

Commit

Permalink
Fixed autoload path
Browse files Browse the repository at this point in the history
  • Loading branch information
mnapoli committed Jun 2, 2014
1 parent 8e125ee commit fa6d72f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bin/couscous
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ use Couscous\CLI\InitCommand;
use Couscous\CLI\PreviewCommand;
use Symfony\Component\Console\Application;

require_once __DIR__ . '/../vendor/autoload.php';
if (file_exists(__DIR__ . '/../vendor/autoload.php')) {
require_once __DIR__ . '/../vendor/autoload.php';
} else {
require_once __DIR__ . '/../../../autoload.php';
}

$application = new Application('Couscous', '0.3.0');

Expand Down

0 comments on commit fa6d72f

Please sign in to comment.