From 63231b39e9b973c2cceeed1810285c0bc4e511f2 Mon Sep 17 00:00:00 2001 From: "Pablo R. Mier" Date: Sun, 21 Jul 2024 00:34:24 +0200 Subject: [PATCH] Show lib path with corneto.info() --- corneto/_util.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/corneto/_util.py b/corneto/_util.py index 41a50278..8a3a6951 100644 --- a/corneto/_util.py +++ b/corneto/_util.py @@ -1,5 +1,6 @@ import hashlib import pickle +import os from collections import OrderedDict from itertools import filterfalse from typing import Any, Callable, Dict, Iterable, Optional, Set, TypeVar @@ -139,6 +140,12 @@ def _get_info() -> Dict[str, Dict]: info["graphviz_version"]["value"] = graphviz.__version__ except Exception: pass + + info["installed_path"] = { + "title": "Installed path", + "message": os.path.dirname(__file__), + "value": os.path.dirname(__file__) + } info["repo_url"] = { "title": "Repository", "message": "https://github.com/saezlab/corneto",