Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python 中specialOptions 配置 FilePath 为 file,会错误替换 import 的 Zipfile 为文件名 #630

Open
CyrilTaylor opened this issue Feb 21, 2025 · 0 comments

Comments

@CyrilTaylor
Copy link

描述bug(必填)

python 中specialOptions 配置 FilePath 为 file,会错误替换 import 的 Zipfile 为文件名

注释设置(必填):

"specialOptions": {
            "Author": "author",
            "Date": "create",
            "FilePath": "file",
            "Description": "description",
        },

VsCode设置:

文件后缀(必填):

py

你得到的注释(必填):

Image

预期的行为(必填):

Image

屏幕截图(选填)

如果方便的话,添加截图来帮助解释你的问题:

问题相关(选填)

保存的时候就会自动把from zipfile import ZIP_LZMA, ZipFile替换成了file: ConfigTool.py(当前 python 文件名)

错误日志(选填):

怎么生成错误日志?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant