Sign in
android
/
platform
/
external
/
pytorch
/
2913f6a26d
/
.
/
tools
/
setup_helpers
/
__init__.py
blob: 4e137a6dece81eeaad34b5b4492ffe21681949e0 [
file
] [
log
] [
blame
]
import
os
def
escape_path
(
path
):
"Can be replaced by pathlib.as_posix when Python 3 is required."
if
os
.
path
.
sep
!=
'/'
and
path
is
not
None
:
return
path
.
replace
(
os
.
path
.
sep
,
'/'
)
return
path