def import_script(self, script_name):
        """Finds the script file and copies it into the toolbox"""
        filename = os.path.abspath(script_name)
        with open(filename, 'r') as script_file:
            self.toolbox_file.write(script_file.read())
def import_script ( self , script_name ) : filename = os . path . abspath ( script_name ) with open ( filename , 'r' ) as script_file : self . toolbox_file . write ( script_file . read ( ) )
Finds the script file and copies it into the toolbox