mirror of
https://github.com/onionshare/onionshare.git
synced 2025-07-27 16:45:44 -04:00
Correct the path to pyproject.toml
This commit is contained in:
parent
b0299ee552
commit
e34fd0f3e2
1 changed files with 6 additions and 1 deletions
|
@ -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,
|
# This setup.py file is used for flatpak packaging. For other packaging,
|
||||||
# OnionShare uses briefcase.
|
# OnionShare uses briefcase.
|
||||||
|
|
||||||
|
import os
|
||||||
import setuptools
|
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():
|
for line in f.readlines():
|
||||||
if line.startswith("version = "):
|
if line.startswith("version = "):
|
||||||
version = line.split('"')[1]
|
version = line.split('"')[1]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue