[Python-3000-checkins] r58228 - python/branches/py3k-importlib/Modules/getpath.c

brett.cannon python-3000-checkins at python.org
Sat Sep 22 05:51:57 CEST 2007


Author: brett.cannon
Date: Sat Sep 22 05:51:57 2007
New Revision: 58228

Modified:
   python/branches/py3k-importlib/Modules/getpath.c
Log:
For now just look for _importlib as a source file; don't worry about bytecode.


Modified: python/branches/py3k-importlib/Modules/getpath.c
==============================================================================
--- python/branches/py3k-importlib/Modules/getpath.c	(original)
+++ python/branches/py3k-importlib/Modules/getpath.c	Sat Sep 22 05:51:57 2007
@@ -270,7 +270,7 @@
             *delim = '\0';
         joinpath(prefix, lib_python);
         joinpath(prefix, LANDMARK);
-	if (ismodule(prefix))
+	if (isfile(prefix))
 		strcpy(importlib_path, prefix);
 	else
 		importlib_path[0] = '\0';
@@ -287,7 +287,7 @@
         joinpath(prefix, vpath);
         joinpath(prefix, "Lib");
         joinpath(prefix, LANDMARK);
-        if (ismodule(prefix)) {	
+        if (isfile(prefix)) {	
             strcpy(importlib_path, prefix);
             return -1;
         }
@@ -299,7 +299,7 @@
         n = strlen(prefix);
         joinpath(prefix, lib_python);
         joinpath(prefix, LANDMARK);
-        if (ismodule(prefix)) {
+        if (isfile(prefix)) {
             strcpy(importlib_path, prefix);
             return 1;
         }
@@ -311,7 +311,7 @@
     strncpy(prefix, PREFIX, MAXPATHLEN);
     joinpath(prefix, lib_python);
     joinpath(prefix, LANDMARK);
-    if (ismodule(prefix)) {
+    if (isfile(prefix)) {
         strcpy(importlib_path, prefix);
         return 1;
     }


More information about the Python-3000-checkins mailing list