blob: 592492a2077e743a328505f4f226d054fdd0c6a1 [file] [log] [blame]
schillinge2f5e85e2019-03-03 19:17:23 +01001import os
2import sys
3
4
5def 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)