Skip to content

Commit

Permalink
fix linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
petrs committed Dec 15, 2024
1 parent d27060d commit a162ecb
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions prepare_known_cards.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

ATR_NAMES_FILES = 'atr_cardname.csv'


def search_files(folder):
for root, dirs, files in os.walk(folder):
yield from [os.path.join(root, x) for x in files]
Expand Down Expand Up @@ -50,15 +51,18 @@ def prepare_card_profiles(input_base_dir: str, out_target_dir: str):
os.mkdir(target_dir)
for file_name in algsupport_files:
if os.path.basename(file_name).startswith(cardname_under):
shutil.copy(file_name, target_dir) # copy ALGSUPPORT_DIR/file_name to results/cardname/file_name
# copy ALGSUPPORT_DIR/file_name to results/cardname/file_name
shutil.copy(file_name, target_dir)
transformed_files[cardname_under].append(file_name)
for file_name in perffixed_files:
if os.path.basename(file_name).startswith(cardname_under):
shutil.copy(file_name, target_dir) # copy ALGSUPPORT_DIR/file_name to results/cardname/file_name
# copy ALGSUPPORT_DIR/file_name to results/cardname/file_name
shutil.copy(file_name, target_dir)
transformed_files[cardname_under].append(file_name)
for file_name in perfvariable_files:
if os.path.basename(file_name).startswith(cardname_under):
shutil.copy(file_name, target_dir) # copy ALGSUPPORT_DIR/file_name to results/cardname/file_name
# copy ALGSUPPORT_DIR/file_name to results/cardname/file_name
shutil.copy(file_name, target_dir)
transformed_files[cardname_under].append(file_name)

for cardname in transformed_files.keys():
Expand Down

0 comments on commit a162ecb

Please sign in to comment.