summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMicah Lee <micah@micahflee.com>2020-11-02 10:54:36 -0800
committerMicah Lee <micah@micahflee.com>2020-11-02 10:54:36 -0800
commite34fd0f3e252da72f5381425115532942cf46783 (patch)
tree92be85a603de4022ed12c6e4c3c982d061ec5cf2
parentb0299ee552144851f1a81575fd68f1f5ab9c4fdf (diff)
downloadonionshare-e34fd0f3e252da72f5381425115532942cf46783.tar.gz
onionshare-e34fd0f3e252da72f5381425115532942cf46783.zip
Correct the path to pyproject.toml
-rw-r--r--desktop/src/setup.py7
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]