

def _get_app_exe(self, xul_exe, app_path):
    ' Get the executable to run our app. This should take care\n        that the runtime process shows up in the task manager with the\n        correct exe_name.\n\n        * xul_exe: the location of the xul executbale (can be a symlink)\n        * app_path: the location of the xul app (the application.ini etc.)\n\n        '
    if sys.platform.startswith('darwin'):
        exe = op.join(app_path, 'xulrunner.app')
        title = self._kwargs['title']
        self._osx_create_app(op.realpath(xul_exe), exe, title)
        exe += '/Contents/MacOS/xulrunner'
    else:
        (exe_name, ext) = op.splitext(op.basename(sys.executable))
        exe_name = ((exe_name + '-ui') + ext)
        if sys.platform.startswith('win'):
            exe = op.join(op.dirname(xul_exe), exe_name)
            if (not op.isfile(exe)):
                shutil.copy2(xul_exe, exe)
        else:
            exe = op.join(app_path, exe_name)
            if (not op.isfile(exe)):
                os.symlink(op.realpath(xul_exe), exe)
    return exe

dataset/ETHPy150Open zoofIO/flexx/flexx/webruntime/xul.py XulRuntime._get_app_exe/original