Author: duncan
Date: Tue Oct 24 08:23:28 2006
New Revision: 8462

Modified:
   branches/rel-1-6/freevo/src/helpers/makelircrc.py

Log:
[ 1583376 ] makelircrc -w broken
Fix applied


Modified: branches/rel-1-6/freevo/src/helpers/makelircrc.py
==============================================================================
--- branches/rel-1-6/freevo/src/helpers/makelircrc.py   (original)
+++ branches/rel-1-6/freevo/src/helpers/makelircrc.py   Tue Oct 24 08:23:28 2006
@@ -10,11 +10,6 @@
 # Todo:        
 #
 # -----------------------------------------------------------------------
-# $Log$
-# Revision 1.3  2004/07/10 12:33:39  dischi
-# header cleanup
-#
-# -----------------------------------------------------------------------
 # Freevo - A Home Theater PC framework
 # Copyright (C) 2002 Krister Lagerstrom, et al. 
 # Please see the file freevo/Docs/CREDITS for a complete list of authors.
@@ -33,7 +28,7 @@
 # with this program; if not, write to the Free Software Foundation, Inc.,
 # 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 #
-# ----------------------------------------------------------------------- */
+# -----------------------------------------------------------------------
 
 
 import re
@@ -88,19 +83,14 @@
 write_option = False
 use_pos = None
 
-for arg in sys.argv:
+for arg in sys.argv[1:]:
     if arg == '-w':
         write_option = True
-    elif arg.find('=') > 0:
-        alternatives[arg[:arg.find('=')]] = arg[arg.find('=')+1:]
-    else:
-        try:
-            use_pos = int(arg)
-        except ValueError:
-            sys.stderr.write("Unrecognized argument (%s)!\n" % arg)
 
-if os.path.exists('/etc/lircd.conf'): x = open('/etc/lircd.conf')
-elif os.path.exists('/etc/lirc/lircd.conf'): x = open ('/etc/lirc/lircd.conf')
+if os.path.exists('/etc/lircd.conf'): 
+    x = open('/etc/lircd.conf')
+elif os.path.exists('/etc/lirc/lircd.conf'): 
+    x = open ('/etc/lirc/lircd.conf')
 
 pos = 0
 for line in x.readlines():

-------------------------------------------------------------------------
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