version 1.13, 2014/02/12 19:25:42
|
version 1.16, 2014/04/18 18:51:51
|
|
|
#!/home/jsoc/bin/linux_x86_64/activepython |
#!/usr/bin/python |
| |
# When run with the -s flag, localize.py configures the SUMS-server component of NetDRMS. | # When run with the -s flag, localize.py configures the SUMS-server component of NetDRMS. |
|
from __future__ import print_function |
import sys | import sys |
import getopt | import getopt |
import re | import re |
Line 976 def configureNet(cfgfile, cfile, mfile, |
|
Line 976 def configureNet(cfgfile, cfile, mfile, |
|
print(exc.strerror, file=sys.stderr) | print(exc.strerror, file=sys.stderr) |
print('Unable to read configuration file ' + cfgfile + '.', file=sys.stderr) | print('Unable to read configuration file ' + cfgfile + '.', file=sys.stderr) |
except Exception as exc: | except Exception as exc: |
|
if len(exc.args) >= 2: |
type, msg = exc.args | type, msg = exc.args |
|
else: |
|
# re-raise the exception |
|
raise |
|
|
if type == 'unexpectedIccRet': | if type == 'unexpectedIccRet': |
print('icc -V returned this unexpected message:\n' + msg, file=sys.stderr) | print('icc -V returned this unexpected message:\n' + msg, file=sys.stderr) |
rv = bool(1) | rv = bool(1) |