We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 79ca4d5 commit d07f2abCopy full SHA for d07f2ab
utils.py
@@ -1,13 +1,16 @@
1
from mmif.serialize.annotation import Text
2
from flask import current_app
3
import cache
4
+import mmif_docloc_baapb
5
6
7
def url2posix(path):
8
"""For the visualizer we often want a POSIX path and not a URL so we strip off
9
the protocol if there is one."""
10
if str(path).startswith('file:///'):
11
path = path[7:]
12
+ elif str(path).startswith('baapb://'):
13
+ path = mmif_docloc_baapb.resolve(path)
14
return path
15
16
0 commit comments