8000 simplify publishing preparation · winpython/winpython@0c845f6 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0c845f6

Browse files
committed
simplify publishing preparation
1 parent 26d3f24 commit 0c845f6

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

hash.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,9 @@ def give_hashblake(file_in, with_this):
2222

2323
if __name__ == '__main__':
2424
if len(sys.argv) < 2:
25-
print(
26-
"Usage: "
27-
+ sys.argv[0]
28-
+ " github-user [github-project]"
29-
)
25+
print( "Usage: hash.py files_to_copte_hash" )
3026
exit(1)
31-
file = sys.argv[1]
27+
files = [str(i) for i in sys.argv[1:] if str(i)[-3:].lower() != ".py"]
3228

3329
header = (
3430
" MD5"
@@ -53,7 +49,8 @@ def give_hashblake(file_in, with_this):
5349
print(header)
5450
print(line)
5551

56-
print(""+
52+
for file in files:
53+
print(""+
5754
f"{give_hash(file, hashlib.md5)} | " +
5855
f"{give_hash(file, hashlib.sha1)} | " +
5956
f"{give_hash(file, hashlib.sha256)} | " +

hash_launch.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ call C:\WPy64-3890\scripts\env.bat
33
cd %~dp0
44

55
rem echo %date% %time%>>gdc_counting.txt
6-
python hash.py %1 >>hash_counting_%date:/=_%.txt
6+
python hash.py %* >>hash_counting_%date:/=_%.txt
77

88
start notepad.exe hash_counting_%date:/=_%.txt

0 commit comments

Comments
 (0)
0