#!/usr/bin/env python3
# -*- coding: utf-8 -*-

import os
import csv

from diffios import Diffios

IGNORE_FILE = os.path.join(os.getcwd(), "priv", "diffios_ignore")
COMPARISON_DIR = os.path.join(os.getcwd(), "priv", "anchor")
BASELINE_FILENAME = "sm_sw_baseline.txt"
BASELINE_FILE = os.path.join(
    os.getcwd(), "priv", "anchor_baselines", BASELINE_FILENAME)

with open(os.path.join(os.getcwd(), "priv", "diffs.csv"), 'w') as csvfile:
    csvwriter = csv.writer(csvfile, lineterminator='\n')
    csvwriter.writerow(["Comparison", "Baseline", "Additional", "Missing"])
    files = sorted(os.listdir(COMPARISON_DIR))
    for fin in files:
        print("Processing: ", fin)
        comparison_file = os.path.join(COMPARISON_DIR, fin)
        diff = Diffios(BASELINE_FILE, comparison_file, IGNORE_FILE)
        csvwriter.writerow([
            fin,
            os.path.basename(BASELINE_FILE),
            diff.pprint_additional(),
            diff.pprint_missing()
        ])

@@ -67,29 +67,16 @@
 sv%0A%0A
-from diffios 
 import 
-D
+d
 iffi
@@ -605,24 +605,65 @@
     
-for fin in 
+num_files = len(files)%0A    for i, fin in enumerate(
 files
+)
 :%0A  
@@ -679,26 +679,81 @@
 nt(%22
-Processing: %22, fin
+diffios: %7B:%3E3%7D/%7B%7D Processing: %7B:%3E20%7D%22.format(i, num_files, fin), end=%22%5Cr%22
 )%0A  
@@ -829,15 +829,23 @@
 f = 
-D
+d
 iffios
+.Compare
 (BAS

update run_diffios.py