

def _install_ff_locally(self, path, ff_exe):
    ' Make a local "copy" of the firefox runtime. This should put\n        a \'xulrunner\' executable in the given path.\n\n        On Windows we must make a copy, so that we can make a copy of\n        the runtime exe with the name of our choice, to thereby change\n        the process name and avoid taskbar grouping with firefox. On\n        other systems we use symlinks. On Windows, when symlinks are\n        supported (Python 3.2+, Vista+) they hardly ever work because\n        the process has no sufficient privileges.\n\n        On OSX we will create an application "X.app", that symlinks all\n        files in the firefox runtime. The symlink that we create here\n        is only for reference, and does not actually work.\n        '
    if sys.platform.startswith('win'):
        copy_xul_runtime(op.dirname(ff_exe), path)
    else:
        os.mkdir(self)
        stub_exe = op.join(path, 'xulrunner')
        os.symlink(ff_exe, stub_exe)
        return stub_exe

dataset/ETHPy150Open zoofIO/flexx/flexx/webruntime/xul.py XulRuntime._install_ff_locally/VarMisuse@49/348 `path`->`self`