Returns a command to sets a named shell path variable to the given NATIVE paths on the current platform.
(variable, paths)
| 526 | return variable + "=" + value + os.linesep + "export " + variable + os.linesep |
| 527 | |
| 528 | def path_variable_setting_command(variable, paths): |
| 529 | """ |
| 530 | Returns a command to sets a named shell path variable to the given NATIVE |
| 531 | paths on the current platform. |
| 532 | """ |
| 533 | assert isinstance(variable, basestring) |
| 534 | assert is_iterable_typed(paths, basestring) |
| 535 | sep = os.path.pathsep |
| 536 | return variable_setting_command(variable, sep.join(paths)) |
| 537 | |
| 538 | def prepend_path_variable_command(variable, paths): |
| 539 | """ |
no test coverage detected