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") |