(filenameroot)
| 1127 | # File utilities |
| 1128 | # |
| 1129 | def _dataFilePathname(filenameroot): |
| 1130 | if os.name in ('dos', 'nt'): |
| 1131 | path = os.path.join(WNSEARCHDIR, filenameroot + ".dat") |
| 1132 | if os.path.exists(path): |
| 1133 | return [path] |
| 1134 | # Tom De Smedt, 2011 |
| 1135 | # Return a list of consecutive data files. |
| 1136 | import glob |
| 1137 | return sorted(glob.glob(os.path.join(WNSEARCHDIR, "data." + filenameroot + "*"))) |
| 1138 | |
| 1139 | def _indexFilePathname(filenameroot): |
| 1140 | if os.name in ('dos', 'nt'): |