Skip to content

Commit

Permalink
logger does not automatically print the version of the tool
Browse files Browse the repository at this point in the history
  • Loading branch information
joamatab committed Mar 2, 2023
1 parent 4952998 commit 38e33ec
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion gdsfactory/config.py
Expand Up @@ -47,7 +47,11 @@

logger.remove()
logger.add(sink=sys.stderr, level="INFO")
logger.info(f"Load {str(module_path)!r} {__version__}")


def print_version():
"""Print gdsfactory version and install directory."""
logger.info(f"gdsfactory {__version__} {str(module_path)!r}")


default_config = io.StringIO(
Expand Down

0 comments on commit 38e33ec

Please sign in to comment.