#### 问题描述
最新版本中,因迁移helpers.php和修改常量BASE_PATH为获取当前脚本路径,导致自定义脚本路径报错的BUG
#### 程序代码或配置
```
//获取当前脚本路径
if (!defined('BASE_PATH')) {
define('BASE_PATH', Phar::running() ?: getcwd());
}
//这里会报找不到当前脚本xxxx/config目录的错误:
function config_path(string $path = ''): string
{
return path_combine(BASE_PATH . DIRECTORY_SEPARATOR . 'config', $path);
}
//旧版本文件helpers.php常量BASE_PATH是固定的:
define('BASE_PATH', dirname(__DIR__));
```
#### 重现问题的步骤
自定义脚本:
```
require_once __DIR__ . '/../vendor/autoload.php';
require_once __DIR__ . '/../support/bootstrap.php';
echo 'start';
```
#### 操作系统环境及workerman/webman等具体版本
webman版本:v1.6.8