mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 07:31:38 +00:00 
			
		
		
		
	
		
			
	
	
		
			11 lines
		
	
	
	
		
			145 B
		
	
	
	
		
			Python
		
	
	
	
	
	
		
		
			
		
	
	
			11 lines
		
	
	
	
		
			145 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| 
								 | 
							
								import sys
							 | 
						||
| 
								 | 
							
								from . import main
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								rc = 1
							 | 
						||
| 
								 | 
							
								try:
							 | 
						||
| 
								 | 
							
								    main()
							 | 
						||
| 
								 | 
							
								    rc = 0
							 | 
						||
| 
								 | 
							
								except Exception as e:
							 | 
						||
| 
								 | 
							
								    print('Error: %s' % e, file=sys.stderr)
							 | 
						||
| 
								 | 
							
								sys.exit(rc)
							 |