INNER CODE UNIT · Python

aws_run

aehrc/VariantSpark · cloud/aws-emr/python/vs_emr/cli.py:45

    def aws_run(self, cmd):
        if (self.noop):
            click.echo("Noop! Cmd is: %s" % cmd)
        else:
            self.debug("Running: %s" % cmd)
            output =  subprocess.check_output(cmd, shell=True)
            self.debug("Output: %s" % output)
            return output
        
    def load_config(self, config_file):
        is_default_config = config_file is None
        config_file = config_file if config_file is not None else os.path.join(os.environ['HOME'], '.vs_emr/config.yaml')
        
        configuration = {}
        
        if os.path.exists(config_file):
            self.echo("Loading config from: %s" % config_file)
            configuration = load_yaml(config_file)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…