We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b02304b commit 1c0ca04Copy full SHA for 1c0ca04
odml/terminology.py
@@ -110,6 +110,12 @@ def show_cache(self):
110
disp_name = disp_name + (30 -len(disp_name)) * " "
111
print(" %s \t %s"%(disp_name, file_timestamp))
112
113
+ def clear_cache(self):
114
+ cache_dir = os.path.join(tempfile.gettempdir(), "odml.cache")
115
+ filelist = [ f for f in os.listdir(cache_dir) if f.endswith(".xml") ]
116
+ for f in filelist:
117
+ os.remove(os.path.join(cache_dir, f))
118
+
119
120
terminologies = Terminologies()
121
load = terminologies.load
0 commit comments