Returns a command to sets a named shell path variable to the given NATIVE paths on the current platform.
(variable, paths)
| 516 | return variable + "=" + value + os.linesep + "export " + variable + os.linesep |
| 517 | |
| 518 | def path_variable_setting_command(variable, paths): |
| 519 | """ |
| 520 | Returns a command to sets a named shell path variable to the given NATIVE |
| 521 | paths on the current platform. |
| 522 | """ |
| 523 | assert(isinstance(variable, str)) |
| 524 | assert(isinstance(paths, list)) |
| 525 | sep = os.path.pathsep |
| 526 | return variable_setting_command(variable, sep.join(paths)) |
| 527 | |
| 528 | def prepend_path_variable_command(variable, paths): |
| 529 | """ |
no test coverage detected