Skip to content

Instantly share code, notes, and snippets.

@ouyen
Created April 8, 2022 07:56
Show Gist options
  • Save ouyen/fc625d16597bf7eb811cd883c7e3c792 to your computer and use it in GitHub Desktop.
Save ouyen/fc625d16597bf7eb811cd883c7e3c792 to your computer and use it in GitHub Desktop.
#! /usr/bin/python3
#
import os
os.chdir(os.path.expanduser('~/.cxoffice/'))
dirs=os.listdir()
for i in dirs:
p=f"{i}/.eval"
if os.path.exists(p):
print('remove',p)
os.remove(p)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment