Create desktop and Start Menu shortcuts for Python scripts on Windows, macOS, and Linux. Current version 1.9.7 (released March 2025). Active development, roughly 2-3 releases per year.
pip install pyshortcutsVerified import paths — ran on the pinned version, not inferred.
Creates a desktop shortcut to a Python script.
Use Python 3.10 or newer.
Set script to the full path of the Python script and do not set 'exe'; or use the command-line -x flag.
Add terminal=True to make_shortcut or use -t on command line.
Upgrade to 1.9.7 or pass the full path to the Python executable.
Upgrade to pyshortcuts>=1.9.3 or import from pyshortcuts.utils import get_desktop (deprecated).
Run 'pip install pyshortcuts' in the correct environment.