Ignore:
Timestamp:
05/14/12 16:54:33 (12 years ago)
Author:
ramonb
Message:

sara_cmt/bin/cmt,
sara_cmt/sara_cmt/logger.py,
sara_cmt/sara_cmt/settings.py:

  • apply same ETC_PREPEND location as in setup.py to source code
  • see #14
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sara_cmt/bin/cmt

    r14154 r14171  
    8181#TODO: think about a (better) way to make this dynamic:
    8282import site
    83 configfile = '%s/etc/cmt/cmt.conf' % site.sys.prefix
     83
     84if site.sys.prefix in [ '/usr', '/' ]:
     85    ETC_PREPEND = ''
     86else:
     87    ETC_PREPEND = site.sys.prefix
     88
     89configfile = '%s/etc/cmt/cmt.conf' % ETC_PREPEND
    8490config_parser = ConfigParser.ConfigParser()
    8591config_parser.optionxform = lambda x: x
Note: See TracChangeset for help on using the changeset viewer.