Update of /cvsroot/freevo/freevo/src/config
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5103/src/config

Modified Files:
        __init__.py 
Log Message:
remove TRUE, FALSE, DEBUG and HELPER

Index: __init__.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/config/__init__.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** __init__.py 31 Dec 2004 11:57:40 -0000      1.6
--- __init__.py 8 Jan 2005 15:40:51 -0000       1.7
***************
*** 89,106 ****
  # XXX is used.
  
- # use True/False
- __builtin__.__dict__['TRUE']  = 1
- __builtin__.__dict__['FALSE'] = 0
- 
- # use __freevo_app__
- HELPER = 0
- if sys.argv[0].find('main.py') == -1:
-     HELPER=1
- 
- # use logger
- DEBUG = 0
- 
  # use sysconfig code
- LOGDIR = sysconfig.CONF.logdir
  FREEVO_CACHEDIR = sysconfig.CONF.cachedir
  
--- 89,93 ----
***************
*** 173,177 ****
  # or switch to fbdev if we have no DISPLAY and x11 or dga is used
  #
! if not HELPER:
      if os.environ.has_key('DISPLAY') and os.environ['DISPLAY']:
          if CONF.display in ('mga', 'fbdev'):
--- 160,164 ----
  # or switch to fbdev if we have no DISPLAY and x11 or dga is used
  #
! if __freevo_app__ == 'main':
      if os.environ.has_key('DISPLAY') and os.environ['DISPLAY']:
          if CONF.display in ('mga', 'fbdev'):
***************
*** 249,253 ****
          x.append(('Root', '/'))
          exec('%s = x' % n)
!         if not HELPER and plugin.is_active('mediamenu', type):
              log.warning('%s not set, set it to Home directory' % n)
          if type == 'video':
--- 236,240 ----
          x.append(('Root', '/'))
          exec('%s = x' % n)
!         if __freevo_app__ == 'main' and plugin.is_active('mediamenu', type):
              log.warning('%s not set, set it to Home directory' % n)
          if type == 'video':
***************
*** 300,307 ****
             '  should be stored or remove the tv plugin. Autoset variable\n' +
             '  to %s.') % TV_RECORD_DIR
!     if not HELPER and plugin.is_active('tv'):
          log.warning(msg)
          
! if not VIDEO_SHOW_DATA_DIR and not HELPER:
      log.warning('VIDEO_SHOW_DATA_DIR not found')
      
--- 287,294 ----
             '  should be stored or remove the tv plugin. Autoset variable\n' +
             '  to %s.') % TV_RECORD_DIR
!     if __freevo_app__ == 'main' and plugin.is_active('tv'):
          log.warning(msg)
          
! if not VIDEO_SHOW_DATA_DIR and __freevo_app__ == 'main':
      log.warning('VIDEO_SHOW_DATA_DIR not found')
      



-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to