Both the runner.py execution and the progress.py implementation were
wrong
import hashlib
import os
import pickle
-import shutil
dired = f"{os.path.expanduser('~')}/.cache/lightcards/"
def purge(stra):
"""Delete pickle file"""
- file = f"{dired}/{name_gen(stra)}/"
+ file = f"{dired}/{name_gen(stra)}.p"
if os.path.exists(file):
- shutil.rmtree(file)
+ os.remove(file)
"""
# Purge caches if asked
if args.purge:
- progress.purge(stack)
+ progress.purge(get_orig()[1])
# Check for caches
idx = Status()