1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-16 15:19:06 +00:00

fixed settings.py

This commit is contained in:
lins05
2013-12-21 19:42:31 +08:00
parent 982ea33015
commit aa59c973c5

View File

@@ -376,7 +376,9 @@ def get_events_conf_file():
with open(seafile_ini, 'r') as fp: with open(seafile_ini, 'r') as fp:
seafile_data_dir = fp.read().strip() seafile_data_dir = fp.read().strip()
globals()['EVENTS_CONFIG_FILE'] = os.path.join(seafile_data_dir, 'seafevents.conf') seafevents_conf = os.path.join(seafile_data_dir, 'seafevents.conf')
if os.path.exists(seafevents_conf):
globals()['EVENTS_CONFIG_FILE'] = seafevents_conf
get_events_conf_file() get_events_conf_file()