Skip to content

Commit 4a61419

Browse files
committed
fix(build): 修复项目路径获取方式
使用 Path.cwd() 替代 Path() 来正确获取当前工作目录, 确保构建过程中能够正确定位项目源码路径
1 parent 495ce77 commit 4a61419

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packaging/pyinstaller/vcf_generator_lite.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ from PyInstaller.utils.win32.versioninfo import (
1515
from scripts.app_metadata import app_metadata, app_version_variants
1616
from vcf_generator_lite.constants import APP_COPYRIGHT
1717

18-
PATH_PROJECT = Path()
18+
PATH_PROJECT = Path.cwd()
1919
PATH_SOURCE_MODULE = PATH_PROJECT / "src" / "vcf_generator_lite"
2020

2121
DIST_PATH_MODULE = PurePath("vcf_generator_lite")

0 commit comments

Comments
 (0)