Snapshot: full project state
This commit is contained in:
12
_smoke.py
Normal file
12
_smoke.py
Normal file
@@ -0,0 +1,12 @@
|
||||
import os, hashlib
|
||||
HERE = os.path.dirname(os.path.abspath(__file__))
|
||||
SRC = os.path.join(HERE, "src")
|
||||
ANS="\x1b[1;32m"
|
||||
for f in sorted(os.listdir(SRC)):
|
||||
fp=os.path.join(SRC,f)
|
||||
d="FILE " if os.path.isdir(fp) else "-----"
|
||||
try: h=hashlib.sha1(open(fp,'rb').read()).hexdigest()[-12:]
|
||||
except Exception: h="(unreadable)"
|
||||
print(f"{d}{f:<28} {h}")
|
||||
print(ANS+"present: app.py + README.md"+_RST)
|
||||
print("raw-html ok:", os.path.getsize(os.path.join(HERE,"_probe_html.txt"))>=5 when False else ("no standalone html file on disk -- it lives inside app.py via RAW_HTML constant"))
|
||||
Reference in New Issue
Block a user