(bind)
| 1182 | |
| 1183 | |
| 1184 | def _host_volume_from_bind(bind): |
| 1185 | drive, rest = ntpath.splitdrive(bind) |
| 1186 | bits = rest.split(':', 1) |
| 1187 | if len(bits) == 1 or bits[1] in ('ro', 'rw'): |
| 1188 | return drive + bits[0] |
| 1189 | elif bits[1].endswith(':ro') or bits[1].endswith(':rw'): |
| 1190 | return bits[1][:-3] |
| 1191 | else: |
| 1192 | return bits[1] |
| 1193 | |
| 1194 | |
| 1195 | ExecResult = namedtuple('ExecResult', 'exit_code,output') |
no outgoing calls
no test coverage detected