Link to home
Start Free TrialLog in
Avatar of drewmore44

asked on

Python pickle, dump to specific directory

I have a bunch of picked objects stored in a separate folder inside of my project folder.

When I originally saved them, I had to manually move them from the main project folder (where pickle saved them initially) into this second folder.

Is there a way to tell pickle to dump objects to that folder, instead of the main project folder? This becomes very important when objects are updated / "repickled" .

Alternatively, is there an additional routine I could run to move the objects saved into the main folder into the second folder, overwriting the object with the same name in that folder, and delete it from the main folder?
Avatar of gelonida
Flag of France image

Link to home
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial