File: PbsDRMAA.py

package info (click to toggle)
mobyle 1.5.5%2Bdfsg-6
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 8,288 kB
  • sloc: python: 22,709; makefile: 35; sh: 33; ansic: 10; xml: 6
file content (24 lines) | stat: -rw-r--r-- 1,046 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
########################################################################################
#                                                                                      #
#   Author: Bertrand Neron,                                                            #
#   Organization:'Biological Software and Databases' Group, Institut Pasteur, Paris.   #  
#   Distributed under GPLv2 Licence. Please refer to the COPYING.LIB document.         #
#                                                                                      #
########################################################################################

import os 
import logging
_log = logging.getLogger(__name__)

from Mobyle.Execution.DRMAA import DRMAA


class PbsDRMAA(DRMAA):
    """
    Run the commandline by a system call
    """
    def __init__( self, drmaa_config ):
        super( PbsDRMAA , self ).__init__( drmaa_config )
        # workaround the bug in librmaa from opendsp
        if 'HOME' not in os.environ:
            os.environ[ 'HOME' ] = '/dev/null'