Files
OpenUxAS-SoI/rm-external
Adam C. Foltzer 7dc19e8f65 move all 3rd-party subprojects to 3rd
This cleans up the root directory substantially. The modifications to
the `prepare` script also set it up to work better on Windows.
2017-05-10 15:07:50 -07:00

16 lines
310 B
Python
Executable File

#! /usr/bin/env python3
from pathlib import Path
import os
import shutil
cwd = Path.cwd()
pd = cwd / Path('3rd')
for p in pd.glob('*_patch.tar'):
d = str(p)[0:-10]
if Path(d).is_dir():
shutil.rmtree(d)
pc = pd / 'packagecache'
for c in pc.glob('*'):
os.remove(str(c))