File: gui_bootstrap.py

package info (click to toggle)
python-pyshortcuts 1.9.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,632 kB
  • sloc: python: 1,097; makefile: 42
file content (17 lines) | stat: -rw-r--r-- 537 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/env python
from pathlib import Path
import sys
from pyshortcuts import make_shortcut, uname, __file__

bindir = 'Scripts' if uname.startswith('win') else 'bin'

script = Path(sys.prefix, bindir, 'pyshortcut').resolve().as_posix()


iconfile = 'ladder.icns' if uname=='darwin' else 'shovel.ico'
icon = Path(Path(__file__).parent, 'icons', iconfile).absolute().as_posix()

scut = make_shortcut(f"{script} --wxgui", name='PyShortcuts',
                      icon=icon, terminal=False)

print("pyshortcuts GUI: %s" % scut.target)