thomaswilson-sveltekit/scripts/sunrise_sunset_images/utils.py

5 lines
137 B
Python
Raw Permalink Normal View History

import os
def make_relative_file_name(path: str) -> str:
dirname = os.path.dirname(__file__)
return os.path.join(dirname, path)