fixed bug that caused programs using cluster_stats to fail if the directory /tmp/cluster_stats is missing

This commit is contained in:
Guillaume Raffy 2022-02-16 16:13:36 +01:00
parent 41ef0f3616
commit 7ba561eb98
1 changed files with 1 additions and 0 deletions

View File

@ -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/