mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-07-07 08:46:13 +02:00
Use __version__.py instead of VERSION.txt
This commit is contained in:
parent
80b376b4fb
commit
45384f3c8f
4 changed files with 6 additions and 10 deletions
|
@ -2,11 +2,8 @@
|
|||
# encoding: utf-8
|
||||
|
||||
import os
|
||||
|
||||
try:
|
||||
from .__version__ import __version__
|
||||
except ImportError:
|
||||
__version__ = "source"
|
||||
__title__ = "jrnl"
|
||||
__version__ = "source"
|
||||
|
||||
version_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), "VERSION.txt")
|
||||
if os.path.exists(version_path):
|
||||
with open(version_path) as version_file:
|
||||
__version__ = version_file.read()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue