diff options
author | Micah Lee <micah@micahflee.com> | 2020-11-02 10:54:36 -0800 |
---|---|---|
committer | Micah Lee <micah@micahflee.com> | 2020-11-02 10:54:36 -0800 |
commit | e34fd0f3e252da72f5381425115532942cf46783 (patch) | |
tree | 92be85a603de4022ed12c6e4c3c982d061ec5cf2 | |
parent | b0299ee552144851f1a81575fd68f1f5ab9c4fdf (diff) | |
download | onionshare-e34fd0f3e252da72f5381425115532942cf46783.tar.gz onionshare-e34fd0f3e252da72f5381425115532942cf46783.zip |
Correct the path to pyproject.toml
-rw-r--r-- | desktop/src/setup.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/desktop/src/setup.py b/desktop/src/setup.py index 1971a422..59b09b29 100644 --- a/desktop/src/setup.py +++ b/desktop/src/setup.py @@ -22,9 +22,14 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. # This setup.py file is used for flatpak packaging. For other packaging, # OnionShare uses briefcase. +import os import setuptools -with open("../pyproject.toml") as f: +with open( + os.path.join( + os.path.dirname(os.path.dirname(os.path.abspath(__file__))), "pyproject.toml" + ) +) as f: for line in f.readlines(): if line.startswith("version = "): version = line.split('"')[1] |