mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	Issue #18520: initsite() is a little bit more verbose when import site fails
This commit is contained in:
		
							parent
							
								
									580496005d
								
							
						
					
					
						commit
						62ce62a3a1
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		|  | @ -918,6 +918,7 @@ initsite(void) | ||||||
|     PyObject *m; |     PyObject *m; | ||||||
|     m = PyImport_ImportModule("site"); |     m = PyImport_ImportModule("site"); | ||||||
|     if (m == NULL) { |     if (m == NULL) { | ||||||
|  |         fprintf(stderr, "Failed to import the site module\n"); | ||||||
|         PyErr_Print(); |         PyErr_Print(); | ||||||
|         Py_Finalize(); |         Py_Finalize(); | ||||||
|         exit(1); |         exit(1); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Victor Stinner
						Victor Stinner