Update of /cvsroot/freevo/freevo/src/helpers
In directory sc8-pr-cvs1:/tmp/cvs-serv8628
Modified Files:
makelircrc.py
Log Message:
Since FHS-compliant distributions put lircd.conf into /etc/lirc, check
there as well. This will fix the current issue of makelircrc being
unusable on Debian.
Index: makelircrc.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/helpers/makelircrc.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** makelircrc.py 24 Sep 2003 17:33:07 -0000 1.1
--- makelircrc.py 24 Oct 2003 16:07:26 -0000 1.2
***************
*** 4,7 ****
--- 4,8 ----
import config
import sys
+ import os
if len(sys.argv)>1 and sys.argv[1] == '--help':
***************
*** 50,55 ****
alternatives[arg[:arg.find('=')]] = arg[arg.find('=')+1:]
!
! x = open('/etc/lircd.conf')
pos = 0
for line in x.readlines():
--- 51,57 ----
alternatives[arg[:arg.find('=')]] = arg[arg.find('=')+1:]
! 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():
-------------------------------------------------------
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community? Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog