Changes the pythonpath (clears all the previous pythonpath) @param pythonpath: string with paths separated by |
(pythonpath)
| 101 | |
| 102 | |
| 103 | def change_python_path(pythonpath): |
| 104 | """Changes the pythonpath (clears all the previous pythonpath) |
| 105 | |
| 106 | @param pythonpath: string with paths separated by | |
| 107 | """ |
| 108 | |
| 109 | split = pythonpath.split("|") |
| 110 | sys.path = [] |
| 111 | for path in split: |
| 112 | path = path.strip() |
| 113 | if len(path) > 0: |
| 114 | sys.path.append(path) |
| 115 | |
| 116 | |
| 117 | class Processor: |