Author: dmeyer
Date: Wed Feb  7 19:29:02 2007
New Revision: 9173

Modified:
   trunk/ui/src/config.py

Log:
add some help doc

Modified: trunk/ui/src/config.py
==============================================================================
--- trunk/ui/src/config.py      (original)
+++ trunk/ui/src/config.py      Wed Feb  7 19:29:02 2007
@@ -59,8 +59,26 @@
 config.add_variable('player', kaa.popcorn.config)
 
 # load config
-config.load(os.path.expanduser('~/.freevo/freevo2.conf'), create=True)
-
+cfgfile = os.path.expanduser('~/.freevo/freevo2.conf')
+if not os.path.isfile(cfgfile):
+    print '%s does not exist' % cfgfile
+    print 'The file is now created and Freevo will stop so you can'
+    print 'adjust the config settings.'
+    print 'Note: local_conf.py is still needed for some settings and is'
+    print 'now called local_conf2.py. Please adjust the name and check'
+    print 'freevo_config.py for possible variables still used in 
local_conf2.py.'
+    print 'This is temporary, the local_conf2.py will be removed later.'
+    print 'You should recheck freevo2.conf after every svn update. Use'
+    print '\'freevo setup\' to rebuild the file without starting freevo.'
+    print 'Your settings will be saved when the config file is rewritten.'
+    config.load(cfgfile, create=True)
+    sys.exit(0)
+
+config.load(cfgfile, create=True)
+if len(sys.argv) > 1 and sys.argv[1] in ('setup', '--setup', 'config', 
'--config'):
+    print 'wrote %s' % cfgfile
+    sys.exit(0)
+    
 # plugins ist a list of known plugins
 for p in plugins:
     c = config

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to