Changeset View
Changeset View
Standalone View
Standalone View
scripts/__init_script__.php
| <?php | <?php | ||||
| /** | /** | ||||
| * Adjust 'include_path' to add locations where we'll search for libphutil. | * Adjust 'include_path' to add locations where we'll search for libphutil. | ||||
| * We look in these places: | * We look in these places: | ||||
| * | * | ||||
| * - Next to 'arcanist/'. | * - Next to 'arcanist/'. | ||||
| * - Anywhere in the normal PHP 'include_path'. | * - Anywhere in the normal PHP 'include_path'. | ||||
| * - Inside 'arcanist/externals/includes/'. | * - Inside 'arcanist/externals/includes/'. | ||||
| * | * | ||||
| * When looking in these places, we expect to find a 'libphutil/' directory. | * When looking in these places, we expect to find a 'libphutil/' directory. | ||||
| */ | */ | ||||
| function arcanist_adjust_php_include_path() { | function arcanist_adjust_php_include_path() { | ||||
| // The 'arcanist/' directory. | // The 'arcanist/' directory. | ||||
| $arcanist_dir = dirname(dirname(__FILE__)); | $arcanist_dir = dirname(dirname(__FILE__)); | ||||
| // The parent directory of 'arcanist/'. | // The parent directory of 'arcanist/'. | ||||
| $parent_dir = dirname($arcanist_dir); | $parent_dir = dirname($arcanist_dir); | ||||
| // The 'arcanist/externals/includes/' directory. | // The 'arcanist/externals/includes/' directory. | ||||
| $include_dir = implode( | $include_dir = implode( | ||||
| ▲ Show 20 Lines • Show All 86 Lines • Show Last 20 Lines | |||||