Gitiles
Code Review
Sign In
osm.etsi.org
/
osm
/
vim-emu
/
85408ed517f100c3e477efd35e54630bf9171af0
/
.
/
src
/
emuvim
/
api
/
util
/
path_utils.py
blob: 592492a2077e743a328505f4f226d054fdd0c6a1 [
file
] [
log
] [
blame
]
import
os
import
sys
def
get_absolute_path
(
absolute_or_relative_to_main_path
):
if
os
.
path
.
isabs
(
absolute_or_relative_to_main_path
):
return
absolute_or_relative_to_main_path
return
os
.
path
.
join
(
sys
.
path
[
0
],
absolute_or_relative_to_main_path
)