Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import os, re
- dirHome = os.path.expanduser('~')
- nameDirPlugin = "plug-ins"
- l_dirPlugin = []
- mask = r".*gimp.[0-9]+\.[0-9]+%s%s" % ( os.sep, nameDirPlugin )
- for root, dirs, files in os.walk( dirHome ):
- if re.match( mask, root, re.IGNORECASE):
- l_dirPlugin.append( root )
- print l_dirPlugin
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement