Skip to content

Commit

Permalink
fix xincd autoload
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian B. Knapp committed Apr 9, 2016
1 parent afa4956 commit a02969d
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions Executes/xincd
Expand Up @@ -16,7 +16,13 @@
* @license http://www.gnu.org/copyleft/lgpl.html GNU LGPL 3+
* @link http://code.google.com/p/xinc/
*/

require_once __DIR__ . '/../vendor/autoload.php';

echo __DIR__,"\n";
// installed in vendor bin
if(file_exists(__DIR__ . '/../../../autoload.php')) {
require_once __DIR__ . '/../../../autoload.php';
}
// in xinc-server source
elseif(file_exists(__DIR__ . '/../vendor/autoload.php')) {
require_once __DIR__ . '/../vendor/autoload.php';
}
Xinc\Server\Cmd::execute();

0 comments on commit a02969d

Please sign in to comment.