mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 19:44:52 +00:00
modification to setup.py to allow for subdirs in plugins
This commit is contained in:
parent
b02ef923ff
commit
0858836a67
1 changed files with 9 additions and 2 deletions
11
setup.py
11
setup.py
|
@ -364,8 +364,15 @@ data = [('share/deluge/glade', glob.glob('glade/*.glade')),
|
|||
('share/applications' , ['deluge.desktop']),
|
||||
('share/pixmaps' , ['deluge.png'])]
|
||||
|
||||
for plugin in glob.glob('plugins/*'):
|
||||
data.append( ('share/deluge/' + plugin, glob.glob(plugin + '/*')) )
|
||||
# New code to glob plugins and include subdirs:
|
||||
for o in os.walk('plugins'):
|
||||
path = o[0]
|
||||
if not path.count('/.'):
|
||||
items = o[2]
|
||||
for x in range(len(items)):
|
||||
items[x] = path + '/' + items[x]
|
||||
data.append( ('share/deluge/' + path, items))
|
||||
#data.append( ('share/deluge/' + plugin, glob.glob(plugin + '/*')) )
|
||||
|
||||
setup(name=NAME, fullname=FULLNAME, version=VERSION,
|
||||
author=AUTHOR, author_email=EMAIL, description=DESCRIPTION,
|
||||
|
|
Loading…
Add table
Reference in a new issue