mirror of
				https://github.com/python/cpython.git
				synced 2025-10-30 21:21:22 +00:00 
			
		
		
		
	Under NT, interface to mysterious module registry. (Mark H.)
This commit is contained in:
		
							parent
							
								
									e71a947f8e
								
							
						
					
					
						commit
						a5a3db70d4
					
				
					 1 changed files with 8 additions and 0 deletions
				
			
		|  | @ -413,6 +413,14 @@ find_module(name, path, buf, buflen, p_fp) | ||||||
| 	struct filedescr *fdp; | 	struct filedescr *fdp; | ||||||
| 	FILE *fp = NULL; | 	FILE *fp = NULL; | ||||||
| 
 | 
 | ||||||
|  | #ifdef NT | ||||||
|  | 	if ((fp=PyWin_FindRegisteredModule(name, &fdp, buf, buflen))!=NULL) { | ||||||
|  | 		*p_fp = fp; | ||||||
|  | 		return fdp; | ||||||
|  | 	} | ||||||
|  | #endif | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
| 	if (path == NULL) | 	if (path == NULL) | ||||||
| 		path = sysget("path"); | 		path = sysget("path"); | ||||||
| 	if (path == NULL || !is_listobject(path)) { | 	if (path == NULL || !is_listobject(path)) { | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Guido van Rossum
						Guido van Rossum