VirtualBox

Changeset 11903 in vbox for trunk/src


Ignore:
Timestamp:
Sep 1, 2008 9:17:49 AM (16 years ago)
Author:
vboxsync
Message:

VBoxPython: RTR3InitWithProgramPath wants the path to the executable not the path of the executable directory.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libs/xpcom18a4/python/src/module/_xpcom.cpp

    r11892 r11903  
    600600    const char *home = getenv("VBOX_PROGRAM_PATH");
    601601    if (home) {
    602         rc = RTR3InitWithProgramPath(home);
     602      size_t len = strlen(home);
     603      char *exepath = (char *)alloca(len + 32);
     604      memcpy(exepath, home, len);
     605      memcpy(exepath + len, "/pythonfake", sizeof("/pythonfake"));
     606      rc = RTR3InitWithProgramPath(exepath);
    603607    } else {
    604         rc = RTR3Init();
     608      rc = RTR3Init();
    605609    }
    606610#endif
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette