forked from dxFeed/dxfeed-python-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclear.py
More file actions
20 lines (16 loc) · 694 Bytes
/
clear.py
File metadata and controls
20 lines (16 loc) · 694 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import shutil
from pathlib import Path
from itertools import chain
c_files = Path('dxfeed/core').glob('**/*.c')
cpp_files = Path('dxfeed/core').glob('**/*.cpp')
pyd_files = Path('dxfeed/core').glob('**/*.pyd')
so_files = Path('dxfeed/core').glob('**/*.so')
dll_files = Path('dxfeed/core').glob('**/*.dll')
lib_files = Path('dxfeed/core').glob('*.lib')
dylib_files = Path('dxfeed/core').glob('**/*.dylib')
for file_path in chain(c_files, cpp_files, pyd_files, so_files, dll_files, lib_files, dylib_files):
file_path.unlink()
if Path('dxfeed/tmp').exists():
shutil.rmtree('dxfeed/tmp')
if Path('dxfeed/dxfeed-c-api/include').exists():
shutil.rmtree('dxfeed/dxfeed-c-api/include')