diff --git a/composer.inc.php b/composer.inc.php index 54adf54..1c2f46d 100644 --- a/composer.inc.php +++ b/composer.inc.php @@ -3,11 +3,14 @@ namespace taskman; use Exception; task('composer', function($args) { + global $GAME_ROOT; - $files = glob(__DIR__ . '/../composer/composer-*.phar'); + $composer_dir = $GAME_ROOT . '/composer/'; + + $files = glob($composer_dir . '/composer-*.phar'); $PHAR = basename($files[0]); - $cmd = "cd " . __DIR__ . "/../composer/ && "; + $cmd = "cd $composer_dir && "; if(PHP_OS_FAMILY === 'Darwin') { $cmd .= "DYLD_LIBRARY_PATH='" . getenv("DYLD_LIBRARY_PATH") . "' " .