mirror of
https://github.com/onionshare/onionshare.git
synced 2025-05-02 14:36:15 -04:00
Fix get_resource_path to work with python eggs, move appdata xml file to src so flatpak can see it, reduce python dependencies, and update release docs
This commit is contained in:
parent
19b73ae571
commit
0c23c7e5d6
7 changed files with 187 additions and 265 deletions
|
@ -29,6 +29,7 @@ import tempfile
|
|||
import threading
|
||||
import time
|
||||
import shutil
|
||||
from pkg_resources import resource_filename
|
||||
|
||||
from .settings import Settings
|
||||
|
||||
|
@ -73,11 +74,7 @@ class Common:
|
|||
"""
|
||||
Returns the absolute path of a resource
|
||||
"""
|
||||
resources_path = os.path.join(
|
||||
os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe()))),
|
||||
"resources",
|
||||
)
|
||||
path = os.path.join(resources_path, filename)
|
||||
path = resource_filename("onionshare_cli", os.path.join("resources", filename))
|
||||
self.log("Common", "get_resource_path", path)
|
||||
return path
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue