default to current dir

This commit is contained in:
Audrey Aaliyah Jensen 2023-09-08 08:39:27 -05:00
parent af712a22ab
commit adf5512106

View File

@ -54,7 +54,11 @@ def extract(filename):
if __name__ == "__main__":
path = sys.argv[1] or ""
path = ""
if len(sys.argv) > 1:
path = sys.argv[1]
else:
path = "./"
# let's do this in parallel, using cpu count as number of threads
pool = Pool(None)
res = pool.map(extract, glob.iglob("%s*.%s" % (path, EXTENSION)))