Sets the base path.

@return void
432921
protected function basepath()
    {
        $directory = new \RecursiveDirectoryIterator(getcwd());

        $iterator = new \RecursiveIteratorIterator($directory);

        foreach ($iterator as $item) {
            $core = 'core' . DIRECTORY_SEPARATOR . 'CodeIgniter.php';

            $exists = strpos($item->getPathname(), $core) !== false;

            $path = str_replace($core, '', $item->getPathname());

            $exists && ! defined('BASEPATH') && define('BASEPATH', $path);
        }
    }
1014747
public function init()
	{
		$this->path    = $this->config('path');
		$this->baseURL = $this->config('baseURL');

        $this->errorsHandle();
		$this->autoloads();
	}
861711
public function setPath($path)
    {
        $this->parts = Path::translatePath($this->outer->getProject(), $path);
    }
216090
public function base_path($path = null)
    {
        return empty($path) ? $this->path : $this->path . $path;
    }
598154
protected function buildPath()
    {
        $this->basename = $this->filename;

        if (!empty($this->extension)) {
            $this->basename .= '.' . $this->extension;
        }

        $this->path = $this->dirname;

        if (!empty($this->basename)) {
            $this->path .= '/' . $this->basename;
        }

        return $this;
    }
806706
public function setBasePath($value)
	{
		if(($basePath=realpath($value))!==false && is_dir($basePath) && is_writable($basePath))
			$this->_basePath=$basePath;
		else
			throw new CException(Yii::t('yii','CAssetManager.basePath "{path}" is invalid. Please make sure the directory exists and is writable by the Web server process.',
				array('{path}'=>$value)));
	}
354036
private function setPaths($baseDirectory)
    {
        $this->setOption('ROOT', rtrim($baseDirectory, '/') . '/');
        $this->setOption('CORE', dirname(dirname(dirname(__DIR__))) . '/');
        $this->setOption('PUBLIC', self::ROOT() . 'public/');
        $this->setOption('TEMPLATES', self::ROOT() . 'templates/');
        $this->setOption('MODULES', self::ROOT() . 'modules/');
        $this->setOption('PLUGINS', self::ROOT() . 'plugins/');
        $this->setOption('COMPONENTS', self::ROOT() . 'components/');
    }
1259840
public function loadPaths($basePath = null, $configPath = null)
    {
        if ($basePath) {
            $this->basePath = realpath($basePath);
        }

        $this->paths = $this->loadConfig($configPath);

        return $this;
    }
1202991
public function setPath( $path )
	{
#		if( $path && !file_exists( $path ) )
#			throw new RuntimeException( 'Invalid path' );
		$path	= str_replace( DIRECTORY_SEPARATOR, "/", $path );
		$path	= preg_replace( "@(.+)/$@", "\\1", $path )."/";
		$this->path	= $path;
	}
395427
public function setViewPath(string $basePath): self
    {
        $this->viewPath = $basePath;

        if (substr($this->viewPath, -1) != '/') {
            $this->viewPath .= '/';
        }

        return $this;
    }
1091302
public function setPath( $path )
    {
        // Validate $path, it cant be null and must exist
        if ( ! is_string( $path ) ){ throw new InvalidPathException( 'Path must be of type string' ); }
        if ( is_null( $path ) ){ throw new InvalidPathException( 'Path can not be null' ); }
        if ( ! file_exists( $path )){ throw new InvalidPathException( '('. $path .') is invalid' ); }

        $this->path = $path;
    }
111970
public function setPath($path)
	{
		if (!is_file($path)) {
			throw new \InvalidArgumentException('Path '.$path.' invalid');
		}
		$this->path = realpath($path);
	}
21336
public function setParentPath(string $parentPath)
    {
        parent::setParentPath($parentPath);
        foreach ($this->children as $child) {
            $child->setParentPath($this->path());
        }
    }
662038
def set_base_path(self, value):
        
        if config.PATHS not in self.config.application:
            self.config.application[config.PATHS] = dict()

        if config.BASE not in self.config.application[config.PATHS]:
            self.config.application[config.PATHS][config.BASE] = value
317467
def _insert_base_path(self):
        
        if config.BASE in self.paths:
            sys.path.insert(0, self.paths[config.BASE])
715578
public function setRequest(BaseRequest $request)
    {
        foreach ($request as $prop => $value) {
            $this->$prop = $value;
        }
    }
265336
def set_base_dir(self, base_dir):
        

        self._base_dir = base_dir
        self.icon_cache.set_base_dir(base_dir)