Run code for process object if this in not the main process
()
| 65 | |
| 66 | |
| 67 | def freeze_support(): |
| 68 | ''' |
| 69 | Run code for process object if this in not the main process |
| 70 | ''' |
| 71 | if is_forking(sys.argv): |
| 72 | kwds = {} |
| 73 | for arg in sys.argv[2:]: |
| 74 | name, value = arg.split('=') |
| 75 | if value == 'None': |
| 76 | kwds[name] = None |
| 77 | else: |
| 78 | kwds[name] = int(value) |
| 79 | spawn_main(**kwds) |
| 80 | sys.exit() |
| 81 | |
| 82 | |
| 83 | def get_command_line(**kwds): |
no test coverage detected
searching dependent graphs…