Print version upon start

This commit is contained in:
Balthasar Reuter
2018-05-01 22:44:48 +02:00
parent f47e04f23e
commit 69e2210a05
2 changed files with 8 additions and 7 deletions

View File

@@ -1,13 +1,6 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from pkg_resources import get_distribution, DistributionNotFound
try:
__version__ = get_distribution(__name__).version
except DistributionNotFound:
# package is not installed
pass
import sys
from .main import main