scripts/install.py

branch
eric7-maintenance
changeset 10892
409d010d7cae
parent 10873
4e8e63df7893
parent 10886
e46fcabe7a3f
child 11019
27cd57e98461
equal deleted inserted replaced
10874:8f58c95bc6a8 10892:409d010d7cae
2015 @param targetPath path the shortcut shall point to 2015 @param targetPath path the shortcut shall point to
2016 @type str 2016 @type str
2017 @param iconPath path of the icon file 2017 @param iconPath path of the icon file
2018 @type str 2018 @type str
2019 """ 2019 """
2020 # replicate stuff done in pywin32.pth - needed only here
2021 import pywin32_bootstrap # noqa
2022
2020 from pywintypes import com_error # noqa: I102 2023 from pywintypes import com_error # noqa: I102
2021 from win32com.client import Dispatch # noqa: I102 2024 from win32com.client import Dispatch # noqa: I102
2022 2025
2023 with contextlib.suppress(com_error): 2026 with contextlib.suppress(com_error):
2024 shell = Dispatch("WScript.Shell") 2027 shell = Dispatch("WScript.Shell")

eric ide

mercurial