File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change 1
- import os
2
1
import sys
3
2
import argparse
4
3
import logging
@@ -66,17 +65,19 @@ def create_argument_parser() -> argparse.ArgumentParser:
66
65
67
66
68
67
def print_version () -> None :
69
- print (f"Rasa Version : { version .__version__ } " )
70
- py_stuff , os_stuff = sys .version .split ("\n " )
71
- print (f"Python Version : { py_stuff } " )
72
- print (f"Operating System : { os_stuff } " )
73
- print (f"Python Path : { sys .path [0 ]} " )
68
+ """Prints version information of rasa tooling and python."""
69
+ py_info , os_info = sys .version .split ("\n " )
70
+ sdk_info = None
74
71
try :
75
72
import rasa_sdk
76
-
77
- print (f"Rasa SDK Version : { rasa_sdk .__version__ } " )
73
+ sdk_info = rasa_sdk .__version__
78
74
except ModuleNotFoundError :
79
75
pass
76
+ print (f"Rasa Version : { version .__version__ } " )
77
+ print (f"Rasa SDK Version : { sdk_info } " )
78
+ print (f"Python Version : { py_info } " )
79
+ print (f"Operating System : { os_info } " )
80
+ print (f"Python Path : { sys .executable } " )
80
81
81
82
82
83
def main () -> None :
You can’t perform that action at this time.
0 commit comments