forked from lijiext/lammps
improve portability to older python versions
This commit is contained in:
parent
a9dad3d46c
commit
237c8f0bec
|
@ -45,7 +45,7 @@ usrpkg = []
|
|||
# folder, and is not called 'MAKE' is a package
|
||||
|
||||
for d in pkgdirs:
|
||||
pkg = dirs.match(d)[1]
|
||||
pkg = dirs.match(d).group(1)
|
||||
if not os.path.isdir(os.path.join(src,pkg)): continue
|
||||
if pkg in ['DEPEND','MAKE','STUBS']: continue
|
||||
if user.match(pkg):
|
||||
|
|
Loading…
Reference in New Issue