diff --git a/reload_xmos_device.ps1 b/reload_xmos_device.ps1 index 6b19fdd..e5004ce 100644 --- a/reload_xmos_device.ps1 +++ b/reload_xmos_device.ps1 @@ -27,10 +27,11 @@ function UninstallDevices($devManViewPath, $devices) { } # 读取配置文件 -$config = Get-Content -Path .\config.json | ConvertFrom-Json + # 配置选项,当选项不起作用时,检查DevManView.cfg中是否配置了filter $scriptPath = $myinvocation.mycommand.definition +$config = Get-Content -Path $scriptPath\..\config.json | ConvertFrom-Json $devManViewPath = $config.devManViewPath $deviceListFile = $config.deviceListFile $pattern = $config.pattern