From e34fd0f3e252da72f5381425115532942cf46783 Mon Sep 17 00:00:00 2001 From: Micah Lee Date: Mon, 2 Nov 2020 10:54:36 -0800 Subject: Correct the path to pyproject.toml --- desktop/src/setup.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 . # 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] -- cgit v1.2.3-54-g00ecf