def to_posix_path(code_path):
return re.sub("<STR_LIT>",<EOL>lambda match: posixpath.sep + match.group().replace("<STR_LIT::>", "<STR_LIT>").lower(),<EOL>pathlib.PureWindowsPath(code_path).as_posix()) if os.name == "<STR_LIT>" else code_path<EOL>
Change the code_path to be of unix-style if running on windows when supplied with an absolute windows path.

Parameters
----------
code_path : str
    Directory in the host operating system that should be mounted within the container.
Returns
-------
str
    Posix equivalent of absolute windows style path.
Examples
--------
>>> to_posix_path('/Users/UserName/sam-app')
/Users/UserName/sam-app
>>> to_posix_path('C:\\\\Users\\\\UserName\\\\AppData\\\\Local\\\\Temp\\\\mydir')
/c/Users/UserName/AppData/Local/Temp/mydir