diff --git a/extensions/globalkey/viewsource.py b/extensions/globalkey/viewsource.py
index 86356a7..3ad5498 100644
a
|
b
|
class FileViewer(gtk.ScrolledWindow): |
292 | 292 | def _add_dir_to_model(self, dir_path, parent=None): |
293 | 293 | model = self._tree_view.get_model() |
294 | 294 | for f in os.listdir(dir_path): |
295 | | full_path = os.path.join(dir_path, f) |
296 | | if os.path.isdir(full_path): |
297 | | new_iter = model.append(parent, [f, full_path]) |
298 | | self._add_dir_to_model(full_path, new_iter) |
299 | | else: |
300 | | model.append(parent, [f, full_path]) |
| 295 | if not f.endswith('.pyc'): |
| 296 | full_path = os.path.join(dir_path, f) |
| 297 | if os.path.isdir(full_path): |
| 298 | new_iter = model.append(parent, [f, full_path]) |
| 299 | self._add_dir_to_model(full_path, new_iter) |
| 300 | else: |
| 301 | model.append(parent, [f, full_path]) |
301 | 302 | |
302 | 303 | def __selection_changed_cb(self, selection): |
303 | 304 | model, tree_iter = selection.get_selected() |