0
$\begingroup$

Does anyone know if it's possible to delete a pickle file with python in Blender please ?

I need to store some data to use them later. I've created a pickle file to store them (so, maybe is not the best way for that).

When I've finished my work, I need to delete the pickle file with an operator after having restored my data saved in the pickle file.

$\endgroup$
2
$\begingroup$

The standard filesystem functions available in python can be used within blender.

import os
os.remove(path) # a single file
os.rmdir(path) # an empty folder

The python docs include more info.

| improve this answer | |
$\endgroup$
  • $\begingroup$ Sorry for the delay. Thanks a lot for your answer. $\endgroup$ – pistiwique May 31 '15 at 16:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.