mirror of
https://github.com/fergalmoran/picard.git
synced 2026-01-07 00:54:14 +00:00
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
23 lines
386 B
Python
Executable File
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)
|