mirror of
				https://github.com/python/cpython.git
				synced 2025-11-03 23:21:29 +00:00 
			
		
		
		
	Allow mac user to set "command line flags" by option-starting python.
This commit is contained in:
		
							parent
							
								
									292b0f96f3
								
							
						
					
					
						commit
						b7d0df4a91
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		| 
						 | 
					@ -65,6 +65,10 @@ realmain(argc, argv)
 | 
				
			||||||
	if ((p = getenv("PYTHONUNBUFFERED")) && *p != '\0')
 | 
						if ((p = getenv("PYTHONUNBUFFERED")) && *p != '\0')
 | 
				
			||||||
		unbuffered = 1;
 | 
							unbuffered = 1;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#ifdef macintosh
 | 
				
			||||||
 | 
						PyMac_InteractiveOptions(&inspect, &verbose, &suppress_print, &unbuffered, &debugging);
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	while ((c = getopt(argc, argv, "c:disuv")) != EOF) {
 | 
						while ((c = getopt(argc, argv, "c:disuv")) != EOF) {
 | 
				
			||||||
		if (c == 'c') {
 | 
							if (c == 'c') {
 | 
				
			||||||
			/* -c is the last option; following arguments
 | 
								/* -c is the last option; following arguments
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue