site config
This commit is contained in:
parent
857a30db35
commit
052625af16
2 changed files with 6 additions and 6 deletions
|
|
@ -22,7 +22,7 @@ if __name__ == '__main__':
|
|||
(opts, args) = parser.parse_args()
|
||||
|
||||
opts.config = os.path.expanduser(opts.config)
|
||||
if None in (opts.config, ) or (args[0] != 'config' and not os.path.exists(opts.config)):
|
||||
if None in (opts.config, ) or (args and args[0] != 'config' and not os.path.exists(opts.config)):
|
||||
parser.print_help()
|
||||
sys.exit()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue