Skip to content

Commit

Permalink
Debug in prod
Browse files Browse the repository at this point in the history
  • Loading branch information
ChillerDragon committed Jun 25, 2024
1 parent 3f00019 commit 36c2d98
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion BlmapChill/print_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
# expected sample output: 184
#

from os.path import isfile
import sys

import twmap
Expand All @@ -17,7 +18,11 @@
print(f"usage: {sys.argv[0]} map")
sys.exit(0)

m = twmap.Map(sys.argv[1])
map_path = sys.argv[1]
if not isfile(map_path):
print(f"Mapfile not found '{map_path}'", file=sys.stderr)
exit(1)
m = twmap.Map(map_path)

# TXT+Deep (version number text)
txt_tiles = m.groups[17].layers[5].tiles
Expand Down

0 comments on commit 36c2d98

Please sign in to comment.