This commit is contained in:
Copilot 2026-03-07 13:35:28 +00:00 committed by GitHub
commit 3b8445a1a6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -92,7 +92,7 @@ run_normal() {
cd $dir_scripts cd $dir_scripts
local relative_path="${file_param%/*}" local relative_path="${file_param%/*}"
if [[ ${file_param} != /* ]] && [[ ! -z ${relative_path} ]] && [[ ${file_param} =~ "/" ]]; then if [[ ! -z ${relative_path} ]] && [[ ${file_param} =~ "/" ]]; then
cd ${relative_path} cd ${relative_path}
file_param=${file_param/$relative_path\//} file_param=${file_param/$relative_path\//}
fi fi

View File

@ -42,7 +42,7 @@ def run():
os.environ["PYTHONPATH"] = prev_pythonpath os.environ["PYTHONPATH"] = prev_pythonpath
split_str = "__sitecustomize__" split_str = "__sitecustomize__"
file_name = sys.argv[0].replace(f"{os.getenv('dir_scripts')}/", "") file_name = os.path.abspath(sys.argv[0]).replace(f"{os.getenv('dir_scripts')}/", "")
# 创建临时文件路径 # 创建临时文件路径
temp_file = f"/tmp/env_{os.getpid()}.json" temp_file = f"/tmp/env_{os.getpid()}.json"