Hi Oliver,
Technically wrappers could be separated from the rest of tree, and just
used with any recent VBox (maybe with some minor adjustments). However,
supported configuration is to use SDK shipped with appropriate
VirtualBox release.
Thanks,
Nikolay
Olivier Parisy wrote:
Nikolay Igotti a écrit :
Hi Narf,
Yes, it is possible, and there are two approaches to that:
- platform (COM/XPCOM/webservices) specific (not recommended for
XPCOM, not available for MSCOM, OK for webservices)
- platform neutral (implemented in recent SVN tree) - (recommended)
(...)
Second approach, is to use pregenerated constants file, and rely on
universal wrapper vboxapi.py to access constants, like this:
virtualBoxManager = VirtualBoxManager(None, None)
g_virtualBoxManager.constants.MachineState_Running
Note underscore in constant's name.
(...)
Class VirtualBoxManager hides platform-specific implementation
details, and allow to write the same Python code for Windows, Linux
and webservices.
Hi Nicolay,
Do we have to compile a full VirtualBox distribution from the SVN tree
to be able to use this new Python interface, or is this SDK distinct
from the rest of the code (and compatible with the official 2.2.2
VirtualBox release)?
Regards,
Olivier.
_______________________________________________
vbox-dev mailing list
[email protected]
http://vbox.innotek.de/mailman/listinfo/vbox-dev
_______________________________________________
vbox-dev mailing list
[email protected]
http://vbox.innotek.de/mailman/listinfo/vbox-dev