1
0
Fork 0
mirror of synced 2024-06-26 18:10:24 +12:00

Update main.py

This commit is contained in:
Nick Sweeting 2022-06-08 19:50:45 -07:00 committed by GitHub
parent dd29e1bf78
commit 33ec2117e9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -216,13 +216,13 @@ def version(quiet: bool=False,
# 0.5.6 # 0.5.6
# ArchiveBox v0.5.6 Cpython Linux Linux-4.19.121-linuxkit-x86_64-with-glibc2.28 x86_64 (in Docker) (in TTY) # ArchiveBox v0.5.6 Cpython Linux Linux-4.19.121-linuxkit-x86_64-with-glibc2.28 x86_64 (in Docker) (in TTY)
# DEBUG=False IN_DOCKER=True IS_TTY=True TZ=UTC FS_ATOMIC=True FS_REMOTE=False FS_PERMS=644 501:20 SEARCH_BACKEND=ripgrep # DEBUG=False IN_DOCKER=True IS_TTY=True TZ=UTC FS_ATOMIC=True FS_REMOTE=False FS_PERMS=644 501:20 SEARCH_BACKEND=ripgrep
# DEBUG=False IN_DOCKER=True IS_TTY=True TZ=UTC FS_ATOMIC=True FS_REMOTE=False FS_PERMS=644 501:20 SEARCH_BACKEND=ripgrep # DEBUG=False IN_DOCKER=True IS_TTY=True TZ=UTC FS_ATOMIC=True FS_REMOTE=False FS_PERMS=644 501:20 SEARCH_BACKEND=ripgrepw
print(VERSION)
COMMIT_HASH = None COMMIT_HASH = None
try: try:
COMMIT_HASH = list(Path('.git/refs/heads/').glob('*'))[0].read_text() or list((SOURCE_DIR / '.git/refs/heads/').glob('*'))[0].read_text() COMMIT_HASH = list((SOURCE_DIR / '.git/refs/heads/').glob('*'))[0].read_text()
except Exception: except Exception as e:
print(e)
pass pass
p = platform.uname() p = platform.uname()