From 01d56903ba01a91841d199fe393f9b307a7596a2 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Wed, 11 Sep 2024 02:31:19 -0500 Subject: Log out the absolute path Log out the absolute path to avoid replicating the relative path in the logs, which isn't useful. This relates to commit ca8018a61f2e014b4aee4da2cbd00d7b591b2f6a --- gn2/utility/Plot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gn2/utility/Plot.py b/gn2/utility/Plot.py index 662ffdb8..f984963f 100644 --- a/gn2/utility/Plot.py +++ b/gn2/utility/Plot.py @@ -23,6 +23,7 @@ # Created by GeneNetwork Core Team 2010/08/10 # # Last updated by GeneNetwork Core Team 2010/10/20 +import os from PIL import ImageColor from PIL import ImageDraw @@ -183,7 +184,7 @@ def plotBar(canvas, data, barColor=BLUE, axesColor=BLACK, labelColor=BLACK, XLab ) # draw scale - app.logger.debug("Font file path: %s", COUR_FILE) + app.logger.debug("Font file path: %s", os.path.abspath(COUR_FILE)) scaleFont = ImageFont.truetype(font=COUR_FILE, size=11) x = xLow for i in range(int(stepX) + 1): -- cgit v1.2.3