File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 2222from .cache import Cache
2323from .table import tablify , COLUMNS
2424
25- DEFAULT_CONFIG_FILE = path .join (xdg_config_home , * __title__ .split ('-' ), 'conf.py' )
25+ # Neovim's $XDG_CONFIG_HOME is "$HOME/.config", expand for it.
26+ DEFAULT_CONFIG_FILE = path .join (path .expandvars (xdg_config_home ), * __title__ .split ('-' ), 'conf.py' )
2627
2728class HelpFormatter (argparse .ArgumentDefaultsHelpFormatter ,
2829 argparse .RawDescriptionHelpFormatter ): pass
@@ -102,7 +103,7 @@ def main(argv:List[str]=sys.argv[1:]) -> int:
102103
103104 # Load config from file
104105 if args .config == DEFAULT_CONFIG_FILE and not path .isfile (DEFAULT_CONFIG_FILE ):
105- print ('the default configuration file does not exist, ignore it' , file = sys .stderr )
106+ print (f 'the default configuration file { DEFAULT_CONFIG_FILE } does not exist, ignore it' , file = sys .stderr )
106107 cfg = Config ({})
107108 else :
108109 cfg = Config .load (args .config )
@@ -119,6 +120,7 @@ def main(argv:List[str]=sys.argv[1:]) -> int:
119120 else :
120121 parser .print_help ()
121122
123+ return 0
122124
123125def _on_command_stat (args :argparse .Namespace ):
124126 cache = args .cache
You can’t perform that action at this time.
0 commit comments