This commit is contained in:
Audrey Aaliyah Jensen 2023-10-30 10:44:39 -05:00
parent e11c14d382
commit d2e04b43df
No known key found for this signature in database
GPG Key ID: 7FFD7540EBC253EE

View File

@ -63,19 +63,6 @@ def extract(filename):
if __name__ == "__main__":
<<<<<<< HEAD
path = ""
if len(sys.argv) > 1:
path = sys.argv[1]
print("Path: " + path)
#Make sure there's a trailing slash
pathRE = re.search(INREGEX, path)
if pathRE is None:
path += "\\\\"
else:
path = "./"
=======
>>>>>>> parent of af712a2 (allows passing an input path as argument)
# let's do this in parallel, using cpu count as number of threads
pool = Pool(None)
res = pool.map(extract, glob.iglob("*.%s" % EXTENSION))