Skip to content

Commit

Permalink
Merge pull request #175 from toolsforexperiments/add_version_logging
Browse files Browse the repository at this point in the history
Add version log message to main __init__
  • Loading branch information
WilliamHPNielsen committed Feb 18, 2021
2 parents 779d1fa + 0052d26 commit 130b8b4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plottr/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from typing import TYPE_CHECKING
import os
import logging

if TYPE_CHECKING:
from PyQt5 import QtCore, QtGui, QtWidgets
Expand All @@ -19,3 +20,6 @@
from ._version import get_versions
__version__ = get_versions()['version']
del get_versions

logger = logging.getLogger(__name__)
logger.info(f"Imported plottr version: {__version__}")

0 comments on commit 130b8b4

Please sign in to comment.