Skip to content
Snippets Groups Projects
Commit 8bf3ea7f authored by Tamas Gal's avatar Tamas Gal :speech_balloon:
Browse files

Import cleanup

parent 59c1519c
No related branches found
No related tags found
No related merge requests found
Pipeline #12987 passed with warnings
from __future__ import absolute_import from __future__ import absolute_import
import os import atexit
from pkg_resources import get_distribution, DistributionNotFound from pkg_resources import get_distribution, DistributionNotFound
import importlib_resources import importlib_resources
try:
version = get_distribution(__name__).version
except DistributionNotFound:
version = "unknown version"
__version__ = version
try: try:
from importlib_resources import as_file from importlib_resources import as_file
except ImportError: except ImportError:
...@@ -22,7 +15,14 @@ try: ...@@ -22,7 +15,14 @@ try:
except ImportError: except ImportError:
from contextlib2 import ExitStack from contextlib2 import ExitStack
import atexit
try:
version = get_distribution(__name__).version
except DistributionNotFound:
version = "unknown version"
__version__ = version
LATEST_VERSIONS = { LATEST_VERSIONS = {
"detx": "detx/detx_v3.detx", "detx": "detx/detx_v3.detx",
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment