Satish Balay avatar Satish Balay committed 7739d1b search '/cygdrive/c/' aswell as '/c/' type cygwin paths.

Comments (0)

Files changed (1)


           dir = os.path.join(homedir,dir)
           if os.path.isdir(dir):
             yield (dir)
-    # Try MPICH install locations under Windows
-    yield(os.path.join('/cygdrive','c','Program Files','Microsoft HPC Pack 2008 SDK'))
-    yield(os.path.join('/cygdrive','c','Program Files','Microsoft Compute Cluster Pack'))
-    yield(os.path.join('/cygdrive','c','Program Files','MPICH2'))
-    yield(os.path.join('/cygdrive','c','Program Files (x86)','MPICH2'))
-    yield(os.path.join('/cygdrive','c','Program Files','MPICH'))
-    yield(os.path.join('/cygdrive','c','Program Files','MPICH','SDK.gcc'))
-    yield(os.path.join('/cygdrive','c','Program Files','MPICH','SDK'))
+    # Try MSMPI/MPICH install locations under Windows
+    # ex: /cygdrive/c/Program Files/Microsoft HPC Pack 2008 SDK
+    for root in ['/',os.path.join('/','cygdrive')]:
+      for drive in ['c']:
+        for programFiles in ['Program Files','Program Files (x86)']:
+          for packageDir in ['Microsoft HPC Pack 2008 SDK','Microsoft Compute Cluster Pack','MPICH2','MPICH',os.path.join('MPICH','SDK.gcc'),os.path.join('MPICH','SDK')]:
+            yield(os.path.join(root,drive,programFiles,packageDir))
   def checkSharedLibrary(self):
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.