def __init__(self, app_path, shortcut, prefix, env_name, env_setup_cmd):
<EOL>self.app_path = app_path<EOL>self.prefix = prefix<EOL>self.name = shortcut['<STR_LIT:name>']<EOL>self.cmd = shortcut['<STR_LIT>']<EOL>self.icns = shortcut['<STR_LIT>']<EOL>self.env_name = env_name<EOL>self.env_setup_cmd = env_setup_cmd<EOL>for a, b in [<EOL>('<STR_LIT>', join(prefix, '<STR_LIT>')),<EOL>('<STR_LIT>', join(prefix, '<STR_LIT>')),<EOL>]:<EOL><INDENT>self.cmd = self.cmd.replace(a, b)<EOL>self.icns = self.icns.replace(a, b)<EOL><DEDENT>self.contents_dir = join(self.app_path, '<STR_LIT>')<EOL>self.resources_dir = join(self.contents_dir, '<STR_LIT>')<EOL>self.macos_dir = join(self.contents_dir, '<STR_LIT>')<EOL>self.executable = self.name<EOL>self.executable_path = join(self.macos_dir, self.executable)<EOL>
Required:
---------
shortcut is a dictionary defining a shortcut per the AppInst standard.