Skip to content

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

@CyrilTaylor

Description

@CyrilTaylor

描述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 文件名)

错误日志(选填):

怎么生成错误日志?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions