mirror of
https://github.com/C5H12O5/syno-videoinfo-plugin.git
synced 2025-07-25 17:10:47 +00:00
Fix the package script
This commit is contained in:
2
main.py
2
main.py
@ -6,5 +6,5 @@ import scraper
|
|||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
# Prints the output of the scraper to the console.
|
# Prints the output of the scraper to the console.
|
||||||
root_dir = Path(__file__).resolve().parent
|
root_dir = Path(__file__).resolve().parent
|
||||||
plugin_id = root_dir.stem
|
plugin_id = root_dir.name
|
||||||
print(scraper.scrape(plugin_id))
|
print(scraper.scrape(plugin_id))
|
||||||
|
4
setup.py
4
setup.py
@ -9,7 +9,7 @@ from version import version
|
|||||||
root_dir = Path(__file__).resolve().parent
|
root_dir = Path(__file__).resolve().parent
|
||||||
|
|
||||||
# use the name of the root directory as the plugin id
|
# use the name of the root directory as the plugin id
|
||||||
plugin_id = root_dir.stem
|
plugin_id = root_dir.name
|
||||||
|
|
||||||
# write the INFO file for this plugin
|
# write the INFO file for this plugin
|
||||||
info_tmpl = """
|
info_tmpl = """
|
||||||
@ -48,7 +48,7 @@ setup(
|
|||||||
package_data={
|
package_data={
|
||||||
"": ["run.sh", "INFO"],
|
"": ["run.sh", "INFO"],
|
||||||
"scrapeflows": ["*.json"],
|
"scrapeflows": ["*.json"],
|
||||||
"configserver": ["*.html"],
|
"configserver": ["templates/*.html"],
|
||||||
},
|
},
|
||||||
python_requires=">=3.7",
|
python_requires=">=3.7",
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user