File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 21
21
import os
22
22
import argparse
23
23
import logging
24
+ from lute import __version__
24
25
from lute .app_factory import create_app
25
26
from lute .config .app_config import AppConfig
26
27
@@ -47,7 +48,8 @@ def dev_print(s):
47
48
app = create_app (config_file , output_func = dev_print )
48
49
49
50
ac = AppConfig (config_file )
50
- dev_print (f"\n db name: { ac .dbname } " )
51
+ dev_print (f"\n version { __version__ } " )
52
+ dev_print (f"db name: { ac .dbname } " )
51
53
dev_print (f"data: { ac .datapath } " )
52
54
dev_print (f"Running at: http://localhost:{ port } \n " )
53
55
Original file line number Diff line number Diff line change 14
14
import logging
15
15
import textwrap
16
16
from waitress import serve
17
+ from lute import __version__
17
18
from lute .app_factory import create_app
18
19
from lute .config .app_config import AppConfig
19
20
@@ -73,7 +74,7 @@ def _get_config_file_path(config_file_path=None):
73
74
74
75
def _start (args ):
75
76
"Configure and start the app."
76
- _print ("\n Starting Lute.\n " )
77
+ _print (f "\n Starting Lute version { __version__ } .\n " )
77
78
78
79
config_file_path = _get_config_file_path (args .config )
79
80
app = create_app (config_file_path , output_func = _print )
@@ -90,7 +91,7 @@ def _start(args):
90
91
"""
91
92
_print (textwrap .dedent (close_msg ))
92
93
93
- msg = f"""Lute is running. Open a web browser, and go to:
94
+ msg = f"""Lute v { __version__ } is running. Open a web browser, and go to:
94
95
95
96
http://localhost:{ args .port }
96
97
"""
You can’t perform that action at this time.
0 commit comments