Fix: Improved performance of REST getStatus endpoint.
[osm/vim-emu.git] / src / emuvim / api / util / path_utils.py
1 import os
2 import sys
3
4
5 def get_absolute_path(absolute_or_relative_to_main_path):
6 if os.path.isabs(absolute_or_relative_to_main_path):
7 return absolute_or_relative_to_main_path
8 return os.path.join(sys.path[0], absolute_or_relative_to_main_path)