comparison src/parpg.py @ 181:54c4277ed905

The settings_path command line argument now defaults to the current directory, if the settings file is present there.
author KarstenBock@gmx.net
date Mon, 10 Oct 2011 15:13:56 +0200
parents 59c4db30fe05
children
comparison
equal deleted inserted replaced
180:59c4db30fe05 181:54c4277ed905
32 parser.add_option('-l', '--loglevel', default='critical', 32 parser.add_option('-l', '--loglevel', default='critical',
33 help='desired output level for log file') 33 help='desired output level for log file')
34 opts, args = parser.parse_args() 34 opts, args = parser.parse_args()
35 35
36 if not args: 36 if not args:
37 parser.print_help() 37 if path.isfile("./parpg.cfg"):
38 sys.exit(1) 38 args =(".")
39 else:
40 parser.print_help()
41 sys.exit(1)
42
39 main(args, opts) 43 main(args, opts)