def make_script_file(directory, effects):
 builder = ScriptBuilder(effects)
 (fd, filename) = tempfile.mkstemp(dir=directory, text=True)
 os.write(fd, builder.script())
 os.close(fd)
 os.chmod(filename, 365)
 return os.path.basename(filename)

def make_script_file ( directory , effects ) : builder = ScriptBuilder ( effects ) ( fd , filename ) = tempfile . mkstemp ( dir = directory , text = True ) os . write ( fd , builder . script ( ) ) os . close ( fd ) os . chmod ( filename , 365 ) return os . path . basename ( filename )
create a shell script file from a sequence of effects .