Changeset 14171 for trunk/sara_cmt/sara_cmt/settings.py
- Timestamp:
- 05/14/12 16:54:33 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sara_cmt/sara_cmt/settings.py
r14165 r14171 4 4 from socket import gethostbyname_ex 5 5 6 if site.sys.prefix in [ '/usr', '/' ]: 7 ETC_PREPEND = '' 8 else: 9 ETC_PREPEND = site.sys.prefix 10 6 11 # Path's customizable through virtualenv 7 sample_configfile = '%s/etc/cmt/cmt.conf.sample' % site.sys.prefix8 configfile = '%s/etc/cmt/cmt.conf' % site.sys.prefix12 sample_configfile = '%s/etc/cmt/cmt.conf.sample' % ETC_PREPEND 13 configfile = '%s/etc/cmt/cmt.conf' % ETC_PREPEND 9 14 10 15 def count_configlines( filename ): … … 248 253 #TODO: think about a (better) way to make this dynamic: 249 254 #TODO: get this out of the settings.py, since it should be in the client config 250 CMT_TEMPLATES_DIR = '%s/etc/cmt/templates' % site.sys.prefix255 CMT_TEMPLATES_DIR = '%s/etc/cmt/templates' % ETC_PREPEND 251 256 252 257 # Templates for the CMT web-frontend.
Note: See TracChangeset
for help on using the changeset viewer.