pyrepl/pyrepl module_lister.py,1.3,1.4

[email protected] Fri, 24 Jan 2003 11:49:17 +0100 (MET)
Newsgroups gmane.comp.python.pyrepl.checkins
Message-ID <[email protected]>
Update of /cvs/pyrepl/pyrepl/pyrepl
In directory thoth.codespeak.net:/tmp/cvs-serv4505

Modified Files:
	module_lister.py 
Log Message:
Ignore entries on sys.path that aren't directories.  Many people
have reported this, I finally got around to fixing it after a 
report from JvR.


Index: module_lister.py
===================================================================
RCS file: /cvs/pyrepl/pyrepl/pyrepl/module_lister.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** module_lister.py	17 Jan 2003 13:34:16 -0000	1.3
--- module_lister.py	24 Jan 2003 10:49:15 -0000	1.4
***************
*** 57,61 ****
          if dir == '':
              dir = '.'
!         _packages[''] += _make_module_list_dir(dir, suffs)
      _packages[''].sort()
  
--- 57,62 ----
          if dir == '':
              dir = '.'
!         if os.path.isdir(dir):
!             _packages[''] += _make_module_list_dir(dir, suffs)
      _packages[''].sort()