Commits
Ville Suoranta authored 19344c73a99 Merge
1 1 | ### |
2 2 | ### This is the casatasks configuration file. It loads user settings |
3 3 | ### from userconfig.py. This file is available for use within casatasks |
4 4 | ### as well as to users of the casatasks module. |
5 5 | ### |
6 6 | import os as _os |
7 7 | import time as _time |
8 8 | from .private import userconfig as _uc |
9 9 | logfile = _os.path.realpath(_uc.logfile) if 'logfile' in dir(_uc) else _os.path.join(_os.getcwd( ),'casa-'+_time.strftime("%Y%m%d-%H%M%S", _time.gmtime())+'.log') |
10 + | |
11 + | # Telemetry and CrashReporter |
12 + | telemetry_enabled = _uc.telemetry_enabled if 'telemetry_enabled' in dir(_uc) else True |
13 + | crashreporter_enabled = _uc.crashreporter_enabled if 'crashreporter_enabled' in dir(_uc) else True |
14 + | telemetry_log_directory = _uc.telemetry_log_directory if 'telemetry_log_directory' in dir(_uc) else None |
15 + | telemetry_log_limit = _uc.telemetry_log_limit if 'telemetry_log_limit' in dir(_uc) else None |
16 + | telemetry_log_size_interval = _uc.telemetry_log_size_interval if 'telemetry_log_size_interval' in dir(_uc) else None |
17 + | telemetry_submit_interval = _uc.telemetry_submit_interval if 'telemetry_submit_interval' in dir(_uc) else None |