@@ -1,3 +1,4 @@
+#!/usr/bin/python3
import argparse
from os.path import join, exists, isfile, basename
from os import makedirs, listdir
@@ -71,7 +72,9 @@ def main():
print("No parts found")
exit(2)
- makedirs(args.output, exist_ok=True)
+ if args.output != '':
+ makedirs(args.output, exist_ok=True)
+
output = join(args.output, expected_name)
if exists(output):
@@ -30,7 +30,7 @@ class TestShamir(unittest.TestCase):
def test_full_encode_decode(self):
K = [2, 2, 2, 3, 3, 4, 1, 2, 3, 4, 5, 6, 7]
- N = [2, 3, 4, 4, 5, 6, 7, 7, 7, 4, 5, 6, 7]
+ N = [2, 3, 4, 4, 5, 6, 7, 7, 7, 7, 7, 7, 7]
for it in range(10):
for k, n in zip(K, N):