Properly specify onionshare_cli package_data

This commit is contained in:
Micah Lee 2020-11-08 14:20:31 -08:00
parent 36191b3bed
commit d6de902390
No known key found for this signature in database
GPG Key ID: 403C2657CD994F73
2 changed files with 3 additions and 2 deletions

View File

@ -74,8 +74,9 @@ class Common:
""" """
Returns the absolute path of a resource Returns the absolute path of a resource
""" """
self.log("Common", "get_resource_path", f"filename={filename}")
path = resource_filename("onionshare_cli", os.path.join("resources", filename)) path = resource_filename("onionshare_cli", os.path.join("resources", filename))
self.log("Common", "get_resource_path", path) self.log("Common", "get_resource_path", f"filename={filename}, path={path}")
return path return path
def get_tor_paths(self): def get_tor_paths(self):

View File

@ -53,7 +53,7 @@ setuptools.setup(
"onionshare_cli.web", "onionshare_cli.web",
], ],
package_data={ package_data={
"onionshare": [ "onionshare_cli": [
"resources/*", "resources/*",
"resources/static/*", "resources/static/*",
"resources/static/css/*", "resources/static/css/*",