Python, Pyinstaller creates shortcuts in windows

I am making a python script that creates a shortcut file ( .lnk) using a module win32com.client, I use pyinstallerto convert it to exe. I also use Tkinter, so I need support --tkat pyinstaller. pyinstallerdoesn't seem to work with --tkand imports win32com.clientat the same time (I don't know why) I need this to work. Perhaps there is a way to create shortcuts without win32com.client(I've been looking without success), or do the job pyinstaller(I discuss the problem between win32com.clientand pyinstaller there , but the patch did not solve my problem) Thank you!

+4
source share
1 answer

If anyone is interested, I found a way to create shortcuts using win32com.shell, rather than win32.client.
This works well with the flag pyinstallerand --tkset to ON.

+2
source

All Articles