| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1390,7 +1390,7 @@ def find_loader(self, fullname): | |||
| 1390 | 1390 | is_namespace = False | |
| 1391 | 1391 | tail_module = fullname.rpartition('.')[2] | |
| 1392 | 1392 | try: | |
| 1393 | - mtime = _os.stat(self.path).st_mtime | ||
| 1393 | + mtime = _os.stat(self.path or _os.getcwd()).st_mtime | ||
| 1394 | 1394 | except OSError: | |
| 1395 | 1395 | mtime = -1 | |
| 1396 | 1396 | if mtime != self._path_mtime: | |
@@ -1432,7 +1432,7 @@ def _fill_cache(self): | |||
| 1432 | 1432 | """Fill the cache of potential modules and packages for this directory.""" | |
| 1433 | 1433 | path = self.path | |
| 1434 | 1434 | try: | |
| 1435 | - contents = _os.listdir(path) | ||
| 1435 | + contents = _os.listdir(path or _os.getcwd()) | ||
| 1436 | 1436 | except (FileNotFoundError, PermissionError, NotADirectoryError): | |
| 1437 | 1437 | # Directory has either been removed, turned into a file, or made | |
| 1438 | 1438 | # unreadable. | |
| Back | FazBrowse Home | New Git URL |
0 commit comments