automeme/utils.py

6 lines
237 B
Python
Raw Normal View History

2022-08-18 02:47:04 +00:00
from os.path import exists, join, realpath, split
def get_real_filename(filename : str):
path_to_script = realpath(__file__)
path_to_script_directory, _ = split(path_to_script)
return join(path_to_script_directory, filename)