diff parpg.py @ 6:0897c89da4fe

Using fife settings module again instead of our own.
author Beliar <KarstenBock@gmx.net>
date Mon, 20 Feb 2012 16:50:10 +0100
parents 8da675d9f525
children 21714c459078
line wrap: on
line diff
--- a/parpg.py	Thu Jan 12 19:57:38 2012 +0100
+++ b/parpg.py	Mon Feb 20 16:50:10 2012 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2 
+#!/usr/bin/env python 
 #   This program is free software: you can redistribute it and/or modify
 #   it under the terms of the GNU General Public License as published by
 #   the Free Software Foundation, either version 3 of the License, or
@@ -19,11 +19,7 @@
 
 from parpg.main import main
 
-usage = ('usage: %prog [options] settings_path [system_path user_path]\n\n'
-         'The settings_path argument is mandatory and is the directory in \n'
-         'which your parpg.cfg file is located. Optionally, you may \n'
-         'specify where data files are located (system_path), and where \n'
-         'the user settings and data files should be saved to (user_path)\n\n'
+usage = ('usage: %prog [options]'
          'Example: python %prog .')
 
 parser = OptionParser(description='PARPG Launcher Script', usage=usage)
@@ -33,15 +29,4 @@
                   help='desired output level for log file')
 opts, args = parser.parse_args()
 
-if not args:
-    if path.isfile("./parpg.cfg"):
-        args =(".")
-    elif path.isfile("./parpg.cfg.default"):
-        import shutil
-        shutil.copyfile("./parpg.cfg.default", "./parpg.cfg")
-        args =(".")
-    else:
-        parser.print_help()
-        sys.exit(1)
-
-main(args, opts)
\ No newline at end of file
+main(args, opts)