Skip to content

Commit

Permalink
debug for copy_header
Browse files Browse the repository at this point in the history
  • Loading branch information
nickhuangxinyu1 committed May 20, 2020
1 parent 4d14be2 commit 4db8a43
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions copy_header.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,15 @@ def Copy():
header_path = 'lib-hft/include/'
target_path = 'external/common/include/'
for dl in dir_list:
if not os.path.exists(header_path+dl):
continue
for f in os.listdir(header_path+dl):
if f.split('.')[-1] == 'h' or f.split('.')[-1] == 'hpp':
print('copying %s from %s to %s' % (f, header_path+dl, target_path+dl))
command = 'cp -rf %s %s' % (header_path+dl+"/"+f, target_path+dl)
os.system(command)
if not os.path.exists(header_path):
return
for f in os.listdir(header_path):
if f.split('.')[-1] != 'h' and f.split('.')[-1] != 'hpp':
continue
Expand Down

0 comments on commit 4db8a43

Please sign in to comment.