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:
@@ -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()
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user