Files
picard/tagger.py
Laurent Monin 5329e3592a Clean up and sort imports using isort
Add a config for isort (https://github.com/timothycrosley/isort)
Run isort -rc . and make import style consistent across files
Add a note about `isort` in CONTRIBUTING.md
2018-08-22 08:51:25 +02:00

23 lines
386 B
Python
Executable File

#!/usr/bin/env python3
import os.path
import sys
from picard.tagger import main
from picard.util import (
frozen_temp_path,
is_frozen,
)
sys.path.insert(0, '.')
# This is needed to find resources when using pyinstaller
if is_frozen:
basedir = frozen_temp_path
else:
basedir = os.path.dirname(os.path.abspath(__file__))
main(os.path.join(basedir, 'locale'), True)