| schillinge | 2f5e85e | 2019-03-03 19:17:23 +0100 | [diff] [blame] | 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) | ||||