version 1.29, 2020/08/14 17:41:25
|
version 1.30, 2021/07/20 21:24:09
|
Line 74 PERL_FXNS_B = """sub get |
|
Line 74 PERL_FXNS_B = """sub get |
|
} | } |
1;""" | 1;""" |
| |
PY_BINPATH = '#!/usr/bin/env python\n' |
PY_BINPATH = '#!/usr/bin/env python3\n' |
|
|
|
PY_ALL = f"__all__ = [ 'DPError', 'DPMissingParameterError', 'DRMSParams' ]" |
| |
PY_ERROR_CLASSES = """ | PY_ERROR_CLASSES = """ |
class DPError(Exception): | class DPError(Exception): |
Line 908 def writeParamsFiles(base, cfile, mfile, |
|
Line 910 def writeParamsFiles(base, cfile, mfile, |
|
print(PY_BINPATH, file=pyout) | print(PY_BINPATH, file=pyout) |
print(PREFIX, file=pyout) | print(PREFIX, file=pyout) |
print('# This file contains a set of constants - one for each configuration parameter.\n', file=pyout) | print('# This file contains a set of constants - one for each configuration parameter.\n', file=pyout) |
|
print(PY_ALL, file=pyout) |
print(''.join(pyConstSection), file=pyout) | print(''.join(pyConstSection), file=pyout) |
| |
print(PY_ERROR_CLASSES, file=pyout) | print(PY_ERROR_CLASSES, file=pyout) |