def getScript(self, scriptname):
script = self.description.get('<STR_LIT>', {}).get(scriptname, None)<EOL>if script is not None:<EOL><INDENT>if isinstance(script, str) or isinstance(script, type(u'<STR_LIT>')):<EOL><INDENT>import shlex<EOL>script = shlex.split(script)<EOL><DEDENT>if len(script) and script[<NUM_LIT:0>].lower().endswith('<STR_LIT>'):<EOL><INDENT>if not os.path.isabs(script[<NUM_LIT:0>]):<EOL><INDENT>absscript = os.path.abspath(os.path.join(self.path, script[<NUM_LIT:0>]))<EOL>logger.debug('<STR_LIT>', script[<NUM_LIT:0>], absscript)<EOL>script[<NUM_LIT:0>] = absscript<EOL><DEDENT>import sys<EOL>script = [sys.executable] + script<EOL><DEDENT><DEDENT>return script<EOL>
Return the specified script command. If the first part of the
            command is a .py file, then the current python interpreter is
            prepended.

            If the script is a single string, rather than an array, it is
            shlex-split.