scripts/install.py

branch
eric7
changeset 10886
e46fcabe7a3f
parent 10868
ca5cd7faaf5e
child 10892
409d010d7cae
child 10959
377ef1594e36
equal deleted inserted replaced
10885:f6544d6924d0 10886:e46fcabe7a3f
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