File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 1
1
"""This simply imports certain things for backwards compatibility."""
2
2
3
+ import argparse
3
4
import importlib .metadata as importlib_metadata
4
5
import sys
5
6
9
10
# package is not installed
10
11
pass
11
12
12
- # Check if user has defined a module that sets a custom value for argparse_custom.DEFAULT_ARGUMENT_PARSER.
13
- # Do this before loading cmd2.Cmd class so its commands use the custom parser.
14
- import argparse
15
-
16
13
from .ansi import (
17
14
Bg ,
18
15
Cursor ,
32
29
set_default_argument_parser_type ,
33
30
)
34
31
32
+ # Check if user has defined a module that sets a custom value for argparse_custom.DEFAULT_ARGUMENT_PARSER.
33
+ # Do this before loading cmd2.Cmd class so its commands use the custom parser.
35
34
cmd2_parser_module = getattr (argparse , 'cmd2_parser_module' , None )
36
35
if cmd2_parser_module is not None :
37
36
import importlib
You can’t perform that action at this time.
0 commit comments