File tree Expand file tree Collapse file tree 2 files changed +18
-2
lines changed
Expand file tree Collapse file tree 2 files changed +18
-2
lines changed Original file line number Diff line number Diff line change 11#!/usr/bin/env php
22<?php
3- require __DIR__ . '/../vendor/autoload.php ' ;
3+
4+ if (file_exists (__DIR__ . '/../vendor/autoload.php ' )) {
5+ require __DIR__ . '/../vendor/autoload.php ' ;
6+ } elseif (file_exists (__DIR__ . '/../../../autoload.php ' )) {
7+ require __DIR__ . '/../../../autoload.php ' ;
8+ } elseif (file_exists (__DIR__ . '/../autoload.php ' )) {
9+ require __DIR__ . '/../autoload.php ' ;
10+ } else {
11+ throw new RuntimeException ('Unable to locate autoload.php file. ' );
12+ }
413
514use JmesPath \Env ;
615use JmesPath \DebugRuntime ;
Original file line number Diff line number Diff line change 11#!/usr/bin/env php
22<?php
3- require __DIR__ . '/../vendor/autoload.php ' ;
3+
4+ if (file_exists (__DIR__ . '/../vendor/autoload.php ' )) {
5+ require __DIR__ . '/../vendor/autoload.php ' ;
6+ } elseif (file_exists (__DIR__ . '/../../../autoload.php ' )) {
7+ require __DIR__ . '/../../../autoload.php ' ;
8+ } else {
9+ throw new RuntimeException ('Unable to locate autoload.php file. ' );
10+ }
411
512$ dir = isset ($ argv [1 ]) ? $ argv [1 ] : __DIR__ . '/../tests/compliance/perf ' ;
613is_dir ($ dir ) or die ('Dir not found: ' . $ dir );
You can’t perform that action at this time.
0 commit comments