aboutsummaryrefslogtreecommitdiff
path: root/gn2/utility/Plot.py
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-09-11 02:31:19 -0500
committerFrederick Muriuki Muriithi2024-09-11 02:31:19 -0500
commit01d56903ba01a91841d199fe393f9b307a7596a2 (patch)
tree0a557491f018a3f1630df11c647bcc70cb3655d0 /gn2/utility/Plot.py
parentca8018a61f2e014b4aee4da2cbd00d7b591b2f6a (diff)
downloadgenenetwork2-01d56903ba01a91841d199fe393f9b307a7596a2.tar.gz
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
Diffstat (limited to 'gn2/utility/Plot.py')
-rw-r--r--gn2/utility/Plot.py3
1 files changed, 2 insertions, 1 deletions
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):