2
0
mirror of https://github.com/frappe/bench.git synced 2024-11-14 17:24:04 +00:00
bench/bench/__init__.py

14 lines
351 B
Python

from jinja2 import Environment, PackageLoader
__version__ = "4.0.0"
env = Environment(loader=PackageLoader('bench.config'))
FRAPPE_VERSION = None
def set_frappe_version(bench_path='.'):
from .app import get_current_frappe_version
global FRAPPE_VERSION
if not FRAPPE_VERSION:
FRAPPE_VERSION = get_current_frappe_version(bench_path=bench_path)