# HG changeset patch # User KarstenBock@gmx.net # Date 1318252436 -7200 # Node ID 54c4277ed905b72e4691f055c473632f39fcb4b8 # Parent 59c4db30fe050ef727e310a977d898751d0d5a48 The settings_path command line argument now defaults to the current directory, if the settings file is present there. diff -r 59c4db30fe05 -r 54c4277ed905 src/parpg.py --- a/src/parpg.py Mon Oct 10 15:12:33 2011 +0200 +++ b/src/parpg.py Mon Oct 10 15:13:56 2011 +0200 @@ -34,6 +34,10 @@ opts, args = parser.parse_args() if not args: - parser.print_help() - sys.exit(1) + if path.isfile("./parpg.cfg"): + args =(".") + else: + parser.print_help() + sys.exit(1) + main(args, opts) \ No newline at end of file