function _drush_preflight_alias_path

8.0.x preflight.inc _drush_preflight_alias_path()
7.x preflight.inc _drush_preflight_alias_path()
master preflight.inc _drush_preflight_alias_path()
1 call to _drush_preflight_alias_path()
drush_preflight in includes/preflight.inc
During the initialization of Drush, this is the first step where we load our configuration and commandfiles, and select the site we are going to operate on; however, we take no irreversible actions (e.g. site bootstrapping). This allows commands that…

File

includes/preflight.inc, line 701
Preflight, postflight and shutdown code.

Code

function _drush_preflight_alias_path() {
  $alias_path = &drush_get_context('ALIAS_PATH');
  $default_prefix_configuration = drush_is_windows() ? getenv('ALLUSERSPROFILE') . '/Drush' : '';
  $site_wide_configuration_dir = drush_get_context('ETC_PREFIX', $default_prefix_configuration) . '/etc/drush';
  $alias_path[] = drush_sitealias_alias_base_directory($site_wide_configuration_dir);

  $server_home = drush_server_home();
  if (isset($server_home)) {
    $alias_path[] = drush_sitealias_alias_base_directory($server_home . '/.drush');
  }
}