Compare commits

..

1 commit

Author SHA1 Message Date
Jeff Epler
746d3cf294 better variable name 2021-05-27 08:39:58 -05:00

View file

@ -43,9 +43,9 @@ bundle_data = json.load(f)
f.close()
def asset_path(x):
def asset_path(asset_name):
"""Return the location of a file shipped with the screenshot maker"""
return os.path.join(os.path.dirname(__file__), x)
return os.path.join(os.path.dirname(__file__), asset_name)
font = ImageFont.truetype(asset_path("Roboto-Regular.ttf"), 24)