matplotlibを介してpngを作成しようとしていますが、次のようになります。
[Errno 2] No such file or directory
同じコードが単体テストで機能します。print_figure
通話中
# creates a canvas from figure
canvas = FigureCanvasAgg(fig)
filename = "directory" + os.sep + name_prefix + ".png"
# saves figure to filesystem in png format
canvas.print_figure(filename)
許可の問題になる可能性があると思いますが、同じコードがmanage.py test
ありがとう