examples/example6.py
raw| 1 | #!/usr/bin/env python |
| 2 | |
| 3 | from __future__ import print_function |
| 4 | import drmaa |
| 5 | |
| 6 | |
| 7 | def main(): |
| 8 | """Query the system.""" |
| 9 | s = drmaa.Session() |
| 10 | s.initialize() |
| 11 | print('A DRMAA object was created') |
| 12 | print('Supported contact strings: ' + s.contact) |
| 13 | print('Supported DRM systems: ' + str(s.drmsInfo)) |
| 14 | print('Supported DRMAA implementations: ' + str(s.drmaaImplementation)) |
| 15 | print('Version ' + str(s.version)) |
| 16 | |
| 17 | print('Exiting') |
| 18 | s.exit() |
| 19 | |
| 20 | if __name__=='__main__': |
| 21 | main() |