| 1 |
|
| 2 |
from pathlib import Path |
| 3 |
import sys |
| 4 |
from pyshortcuts import make_shortcut, uname, __file__ |
| 5 |
|
| 6 |
bindir = 'Scripts' if uname.startswith('win') else 'bin' |
| 7 |
|
| 8 |
script = Path(sys.prefix, bindir, 'pyshortcut').resolve().as_posix() |
| 9 |
|
| 10 |
|
| 11 |
iconfile = 'ladder.icns' if uname=='darwin' else 'shovel.ico' |
| 12 |
icon = Path(Path(__file__).parent, 'icons', iconfile).absolute().as_posix() |
| 13 |
|
| 14 |
scut = make_shortcut(f"{script} --wxgui", name='PyShortcuts', |
| 15 |
icon=icon, terminal=False) |
| 16 |
|
| 17 |
print("pyshortcuts GUI: %s" % scut.target) |