mirror of
https://github.com/emendir/EndraApp.git
synced 2025-12-23 22:18:10 -05:00
9 lines
226 B
Python
9 lines
226 B
Python
import toml
|
|
import os
|
|
WORKDIR = os.path.dirname(__file__)
|
|
|
|
|
|
with open(os.path.join(WORKDIR,'pyproject.toml'), 'r') as file:
|
|
data = toml.load(file)
|
|
project_name = data['project']['name']
|
|
version = data['project']['version'] |