1 | """
|
---|
2 | Copyright (C) 2024 Oracle and/or its affiliates.
|
---|
3 |
|
---|
4 | This file is part of VirtualBox base platform packages, as
|
---|
5 | available from https://www.virtualbox.org.
|
---|
6 |
|
---|
7 | This program is free software; you can redistribute it and/or
|
---|
8 | modify it under the terms of the GNU General Public License
|
---|
9 | as published by the Free Software Foundation, in version 3 of the
|
---|
10 | License.
|
---|
11 |
|
---|
12 | This program is distributed in the hope that it will be useful, but
|
---|
13 | WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
15 | General Public License for more details.
|
---|
16 |
|
---|
17 | You should have received a copy of the GNU General Public License
|
---|
18 | along with this program; if not, see <https://www.gnu.org/licenses>.
|
---|
19 |
|
---|
20 | The contents of this file may alternatively be used under the terms
|
---|
21 | of the Common Development and Distribution License Version 1.0
|
---|
22 | (CDDL), a copy of it is provided in the "COPYING.CDDL" file included
|
---|
23 | in the VirtualBox distribution, in which case the provisions of the
|
---|
24 | CDDL are applicable instead of those of the GPL.
|
---|
25 |
|
---|
26 | You may elect to license modified versions of this file under the
|
---|
27 | terms and conditions of either the GPL or the CDDL or both.
|
---|
28 |
|
---|
29 | SPDX-License-Identifier: GPL-3.0-only OR CDDL-1.0
|
---|
30 | """
|
---|
31 |
|
---|
32 | #
|
---|
33 | # This is just a wrapper for calling vboxapi/setup.py, so that we can keep
|
---|
34 | # the behavior of vboxapisetup.py as we did in the past.
|
---|
35 | #
|
---|
36 | if __name__ == '__main__':
|
---|
37 | import sys
|
---|
38 | try:
|
---|
39 | sys.path.append("vboxapi")
|
---|
40 | import setup
|
---|
41 | sys.exit(setup.main())
|
---|
42 | except ImportError as exc:
|
---|
43 | print("VBox Python API binding sources not found: %s" % (exc))
|
---|
44 | sys.exit(1)
|
---|