clusterjob/__init__.py
def write(self, filename=None):
        """Write out the fully rendered jobscript to file. If filename is not
        None, write to the given *local* file. Otherwise, write to the local or
        remote file specified in the filename attribute, in the folder
        specified by the rootdir and workdir attributes. The folder will be
        created if it does not exist already. A '~' in `filename` will be
        expanded to the user's home directory.
        """
        remote = self.remote
        if filename is None:
            self._default_filename()
            filename = self.filename
            filename = os.path.join(self.rootdir, self.workdir, filename)
        else:
            remote = None
        if filename is None:
            raise ValueError("filename not given")
        if remote is None:
            filename = os.path.expanduser(filename)
        self._write_script(str(self), filename, remote)
Write out the fully rendered jobscript to file. If filename is not
        None, write to the given *local* file. Otherwise, write to the local or
        remote file specified in the filename attribute, in the folder
        specified by the rootdir and workdir attributes. The folder will be
        created if it does not exist already. A '~' in `filename` will be
        expanded to the user's home directory.
        
Write out the fully rendered jobscript to file. If filename is not
None, write to the given *local* file. Otherwise, write to the local or
remote file specified in the filename attribute, in the folder
specified by the rootdir and workdir attributes. The folder will be
created if it does not exist already. A '~' in `filename` will be
expanded to the user's home directory.
Write out the fully rendered jobscript to file . If filename is not None write to the given * local * file . Otherwise write to the local or remote file specified in the filename attribute in the folder specified by the rootdir and workdir attributes . The folder will be created if it does not exist already . A ' ~ ' in ` filename ` will be expanded to the user ' s home directory .
def write(self, filename=None):
        remote = self.remote
        if filename is None:
            self._default_filename()
            filename = self.filename
            filename = os.path.join(self.rootdir, self.workdir, filename)
        else:
            remote = None
        if filename is None:
            raise ValueError("filename not given")
        if remote is None:
            filename = os.path.expanduser(filename)
        self._write_script(str(self), filename, remote)
def write ( self , filename = None ) : remote = self . remote if filename is None : self . _default_filename ( ) filename = self . filename filename = os . path . join ( self . rootdir , self . workdir , filename ) else : remote = None if filename is None : raise ValueError ( "filename not given" ) if remote is None : filename = os . path . expanduser ( filename ) self . _write_script ( str ( self ) , filename , remote )
Write out the fully rendered jobscript to file.
Write out the fully rendered jobscript to file .
"""Write out the fully rendered jobscript to file. If filename is not
        None, write to the given *local* file. Otherwise, write to the local or
        remote file specified in the filename attribute, in the folder
        specified by the rootdir and workdir attributes. The folder will be
        created if it does not exist already. A '~' in `filename` will be
        expanded to the user's home directory.
        """
self
filename