PNG file is removed from working directory upon export
import os
from plotid.tagplot import tagplot
from plotid.publish import publish
[A,B] = tagplot('smiley.png', 'image', prefix='TestProject')
publish(['README.md'],'./export/',A,'Smiley')
After running this script the "smiley.png" has been removed from the original directory.
This should only be wanted behaviour if plotID created this file.
If the file/plot comes from a another external program, then the wanted behaviour should be to keep the original file 'original', and only adding the tag to a copy before exporting that copy (which can be removed).
Is there a way to assert that the file was (not) created by plotID? Or will this depend on object oriented implementation (plotid_object) to save this information?