Returns a command that prepends the given paths to the named path variable on the current platform.
(variable, paths)
| 536 | return variable_setting_command(variable, sep.join(paths)) |
| 537 | |
| 538 | def prepend_path_variable_command(variable, paths): |
| 539 | """ |
| 540 | Returns a command that prepends the given paths to the named path variable on |
| 541 | the current platform. |
| 542 | """ |
| 543 | assert isinstance(variable, basestring) |
| 544 | assert is_iterable_typed(paths, basestring) |
| 545 | |
| 546 | return path_variable_setting_command(variable, |
| 547 | paths + os.environ.get(variable, "").split(os.pathsep)) |
| 548 | |
| 549 | def file_creation_command(): |
| 550 | """ |
nothing calls this directly
no test coverage detected