version 1.14, 2014/04/17 19:11:05
|
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): |
if len(exc.args) >= 2: |
type, msg = exc.args | type, msg = exc.args |
else: | else: |
# re-raise the exception | # re-raise the exception |