default to current dir
This commit is contained in:
parent
af712a22ab
commit
adf5512106
@ -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)))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user