diff --git a/Executes/xincd b/Executes/xincd index b7c5c38..470d520 100755 --- a/Executes/xincd +++ b/Executes/xincd @@ -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();