File: tagger.py.in

package info (click to toggle)
picard 2.13.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 33,012 kB
  • sloc: python: 68,818; ansic: 89; makefile: 14
file content (23 lines) | stat: -rw-r--r-- 599 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/env python3

import os
import sys


sys.path.insert(0, '.')

# This is needed to find resources when using pyinstaller
if getattr(sys, 'frozen', False) and hasattr(sys, '_MEIPASS'):
    basedir = getattr(sys, '_MEIPASS', '')
else:
    basedir = os.path.dirname(os.path.abspath(__file__))

try:
    from picard.tagger import main
    main(os.path.join(basedir, 'locale'), %(autoupdate)s)
except SystemExit:
    raise  # Just continue with a normal application exit
except:  # noqa: E722,F722 # pylint: disable=bare-except
    from picard import crash_handler
    crash_handler()
    raise