mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-08 01:18:39 +00:00
Update create_plugin script a bit
This commit is contained in:
parent
1091054b38
commit
c4782e91f0
1 changed files with 4 additions and 4 deletions
|
@ -48,7 +48,7 @@ def create_plugin():
|
|||
|
||||
name = options.name.replace(" ", "_")
|
||||
safe_name = name.lower()
|
||||
plugin_base = os.path.realpath(os.path.join(options.path, name))
|
||||
plugin_base = os.path.realpath(os.path.join(options.path, safe_name))
|
||||
src = os.path.join(plugin_base, safe_name)
|
||||
template_dir = os.path.join(src, "template")
|
||||
|
||||
|
@ -195,7 +195,7 @@ setup(
|
|||
COMMON = """
|
||||
def get_resource(filename):
|
||||
import pkg_resources, os
|
||||
return pkg_resources.resource_filename("extractor", os.path.join("data", filename))
|
||||
return pkg_resources.resource_filename("%(safe_name)s", os.path.join("data", filename))
|
||||
"""
|
||||
|
||||
GTKUI = """
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue