ϪfdZddlZddlZddlZddlmZdZ ddlm Z ddl m Z ejdddk\rd ZGd d ejZy#e $rdZY3wxYw) z Test win32 shortcut script N)unittest)shell)shortcutz"Only runs on Windows with win32com)zBroken on Python 3.7+.c eZdZeZddZddZy) ShortcutTestsNct}tjj|}t j |}|j dz}|j||jtjj|t j|}|jtjd}|j|t| dj!|j!y)z+ Create a simple shortcut. .lnkrN)__file__ospathbasenamerShortcutmktempsave assertTrueexistsopenGetPathr SLGP_RAWPATH assertEquallenlower)self testFilename baseFileNames1tempnamescscPaths rEsl "  6$'AaF")J)=H%%)=65J6s AAA