projects
/
osm
/
vim-emu.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Fix: Allow CORS to fetch emulator state
[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
)