Fix plugin sub-dir code to work in Windows.

This commit is contained in:
Andrew Resch 2007-10-28 10:34:40 +00:00
parent 925416dded
commit f21eb1c3f4
1 changed files with 1 additions and 1 deletions

View File

@ -367,7 +367,7 @@ data = [('share/deluge/glade', glob.glob('glade/*.glade')),
# New code to glob plugins and include subdirs:
for o in os.walk('plugins'):
path = o[0]
if not path.count('/.'):
if not path.count('/.') and not path.count('\\.'):
items = o[2]
for x in range(len(items)):
items[x] = path + '/' + items[x]