updated two Python script examples to enter the RUNTIME state for execution
from the GUI (Boeing r1837)
This commit is contained in:
		
							parent
							
								
									fef98f30c9
								
							
						
					
					
						commit
						34c7784009
					
				
					 2 changed files with 3 additions and 0 deletions
				
			
		|  | @ -77,6 +77,7 @@ def main(): | ||||||
|         n.append(tmp) |         n.append(tmp) | ||||||
| 
 | 
 | ||||||
|     # this starts EMANE, etc. |     # this starts EMANE, etc. | ||||||
|  |     session.node_count = str(options.numnodes + 1) | ||||||
|     session.instantiate() |     session.instantiate() | ||||||
| 
 | 
 | ||||||
|     # start a shell on node 1 |     # start a shell on node 1 | ||||||
|  |  | ||||||
|  | @ -58,6 +58,8 @@ def main(): | ||||||
|         tmp.setposition(x=150*i,y=150) |         tmp.setposition(x=150*i,y=150) | ||||||
|         n.append(tmp) |         n.append(tmp) | ||||||
| 
 | 
 | ||||||
|  |     session.node_count = str(options.numnodes + 1) | ||||||
|  |     session.instantiate() | ||||||
|     # start a shell on node 1 |     # start a shell on node 1 | ||||||
|     n[1].term("bash") |     n[1].term("bash") | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue