Permalink
Browse files

merged branch davedevelopment/master (PR #54)

Commits
-------

d536152 Check for autoload elsewhere in case Sismo is a dependency

Discussion
----------

Check for autoload elsewhere in case Sismo is a dependency
  • Loading branch information...
2 parents a9c3cc5 + d536152 commit 696d13fa1092d521d38f2f294a1cd9e600ddcca0 @fabpot fabpot committed Jul 28, 2012
Showing with 9 additions and 1 deletion.
  1. +9 −1 sismo
View
10 sismo
@@ -1,7 +1,15 @@
#!/usr/bin/env php
<?php
-require_once __DIR__.'/vendor/autoload.php';
+/**
+ * Try and find a composer autoload file, hope for the best if not
+ */
+if (is_file(__DIR__.'/vendor/autoload.php')) {
+ require_once __DIR__.'/vendor/autoload.php';
+} else if (is_file(__DIR__.'/../../autoload.php')) {
+ require_once __DIR__.'/../../autoload.php';
+}
+
$app = require __DIR__.'/src/app.php';
$console = require __DIR__.'/src/console.php';
$console->run();

0 comments on commit 696d13f

Please sign in to comment.