From 32d3f13ccdf5b9dffe94f7001b437acf281a3b3e Mon Sep 17 00:00:00 2001 From: wanghanwen <1564586847@qq.com> Date: Fri, 28 Oct 2022 16:11:22 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E7=89=B9=E6=AE=8A=E5=AD=97?= =?UTF-8?q?=E7=AC=A6-=E5=AF=BC=E8=87=B4module=E5=8A=A0=E8=BD=BD=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E6=8A=A5=E9=94=99=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/installService.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/installService.py b/src/installService.py index a76ca0b..362c436 100644 --- a/src/installService.py +++ b/src/installService.py @@ -242,7 +242,7 @@ class InstallService: set prefix {install_path} set version {sversion} -setenv {sname.upper()}_PATH {install_path} +setenv {sname.upper().replace('-','_')}_PATH {install_path} {bins_str} {libs_str} {incs_str} @@ -441,4 +441,4 @@ chmod +x {depend_file} content = content.replace(search_old_path.group(1), self.ROOT) self.tool.write_file(file, content) print("update successfully.") - \ No newline at end of file + -- Gitee