public static function set_base_path($path)
 {
     self::$base_path = $path;
 }
<?php

GridFieldSelectExisting::set_base_path(basename(dirname(__FILE__)));