Skip to content

Commit

Permalink
Update get_whl_file.py
Browse files Browse the repository at this point in the history
  • Loading branch information
learnforpractice committed Oct 10, 2021
1 parent d149215 commit 16466c1
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion scripts/get_whl_file.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
import os
for f in os.listdir('./dist'):
import sys

search_dir = 'dist'
keyword = ''

if len(sys.argv) >= 2:
search_dir = sys.argv[1]

if len(sys.argv) >= 3:
keyword = sys.argv[2]

for f in os.listdir(search_dir):
if f.endswith('.whl'):
if keyword and not keyword in f:
continue
print(f)
break

0 comments on commit 16466c1

Please sign in to comment.