Files
whipper-gui/whipper/__main__.py
JoeLametta fa7c50d3a6 Replace 'sys.exit()' and 'exit()' instructions with 'SystemExit()' equivalents
- `SystemExit` doesn't require importing the `sys` module
- `exit()` depends on the `site` module (for this reason its usage is discouraged in production code)

Signed-off-by: JoeLametta <JoeLametta@users.noreply.github.com>
2020-05-30 09:38:52 +00:00

14 lines
364 B
Python

# -*- Mode: Python -*-
# vi:si:et:sw=4:sts=4:ts=4
import os
from whipper.command.main import main
if __name__ == '__main__':
# Make accuraterip_checksum be found automatically if it was built
local_arb = os.path.join(os.path.dirname(__file__), '..', 'src')
os.environ['PATH'] = ':'.join([os.getenv('PATH'), local_arb])
raise SystemExit(main())