From 1ea9d10fce30f12ba1257d5ae841b95d3bd6a135 Mon Sep 17 00:00:00 2001 From: happytommyl Date: Tue, 5 Jul 2022 02:17:56 +0800 Subject: [PATCH 1/2] Change the working directory Change the working directory to that of the batch file so that it can be run globaly from the terminal --- run.bat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run.bat b/run.bat index 41a7bce..a9b3863 100644 --- a/run.bat +++ b/run.bat @@ -1,6 +1,6 @@ @echo off chcp 65001 - +cd %~dp0 set PATH=.\ffmpeg\bin;.\python;%PATH% @REM 不使用代理 From 955a531655f8d890827e39efba0d9d0df11eea92 Mon Sep 17 00:00:00 2001 From: happytommyl Date: Tue, 5 Jul 2022 02:26:12 +0800 Subject: [PATCH 2/2] Change the working directory Change the working directory to that of the batch file so that it can be run globaly from the terminal --- run.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run.ps1 b/run.ps1 index aaa68c6..30aa6b2 100644 --- a/run.ps1 +++ b/run.ps1 @@ -1,5 +1,5 @@ chcp 65001 - +Set-Location $PSScriptRoot $env:PATH = ".\ffmpeg\bin;.\python;" + $env:PATH # 不使用代理