(self, scriptname)
return script_path.text()
Look up the script at scriptname within this plugin.
Look up the script at scriptname within this plugin.
Look up the script at scriptname within this plugin .
def get_script_text(self, scriptname):
        """Look up the script at scriptname within this plugin."""
        if not self.location.isdir():
            return self.location.text()
            
        script_path = self.location / scriptname
        if not script_path.exists():
            return None
        
        return script_path.text()
def get_script_text ( self , scriptname ) : if not self . location . isdir ( ) : return self . location . text ( ) script_path = self . location / scriptname if not script_path . exists ( ) : return None return script_path . text ( )