site config

This commit is contained in:
j 2012-02-24 20:54:49 +05:30
commit 052625af16
2 changed files with 6 additions and 6 deletions

View file

@ -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()