From 7ba561eb98a7ede110546dc36b7e9f9719c4fb19 Mon Sep 17 00:00:00 2001 From: Guillaume Raffy Date: Wed, 16 Feb 2022 16:13:36 +0100 Subject: [PATCH] fixed bug that caused programs using cluster_stats to fail if the directory /tmp/cluster_stats is missing --- cocluto/cluster_stats.py | 1 + 1 file changed, 1 insertion(+) diff --git a/cocluto/cluster_stats.py b/cocluto/cluster_stats.py index f8b7037..730fbd8 100644 --- a/cocluto/cluster_stats.py +++ b/cocluto/cluster_stats.py @@ -10,6 +10,7 @@ import colorsys # root@intranet:~# echo ~www-data # /var/www os.environ['MPLCONFIGDIR'] = "/tmp/cluster_stats" +os.makedirs(os.environ['MPLCONFIGDIR'], exist_ok=True) import matplotlib # fix to TclError at /cluster/ClusterEvolution/