fixed bug that caused programs using cluster_stats to fail if the directory /tmp/cluster_stats is missing
This commit is contained in:
parent
41ef0f3616
commit
7ba561eb98
|
@ -10,6 +10,7 @@ import colorsys
|
||||||
# root@intranet:~# echo ~www-data
|
# root@intranet:~# echo ~www-data
|
||||||
# /var/www
|
# /var/www
|
||||||
os.environ['MPLCONFIGDIR'] = "/tmp/cluster_stats"
|
os.environ['MPLCONFIGDIR'] = "/tmp/cluster_stats"
|
||||||
|
os.makedirs(os.environ['MPLCONFIGDIR'], exist_ok=True)
|
||||||
|
|
||||||
import matplotlib
|
import matplotlib
|
||||||
# fix to TclError at /cluster/ClusterEvolution/
|
# fix to TclError at /cluster/ClusterEvolution/
|
||||||
|
|
Loading…
Reference in New Issue