1/*************************************************************************
2 *
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
6 *
7 * OpenOffice.org - a multi-platform office productivity suite
8 *
9 * This file is part of OpenOffice.org.
10 *
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
14 *
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
20 *
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org.  If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
25 *
26 ************************************************************************/
27
28#include "macros.inc"
29
30
31Profile gid_Profile_Pythonloader_Uno_Ini
32    ModuleID = gid_Module_Optional_Pyuno;
33  #ifdef UNX
34    Name = "pythonloader.unorc";
35  #else
36    Name = "pythonloader.uno.ini";
37  #endif
38    Dir = gid_Dir_Program;
39    Styles = (NETWORK);
40End
41
42#ifndef SYSTEM_PYTHON
43ProfileItem gid_Profileitem_Pythonloader_Pythonhome
44    ProfileID = gid_Profile_Pythonloader_Uno_Ini;
45    ModuleID = gid_Module_Optional_Pyuno;
46    Section = "Bootstrap";
47    Order = 1;
48    Key = "PYUNO_LOADER_PYTHONHOME";
49  #ifdef MACOSX
50    Value = CONCAT2($ORIGIN,"OOoPython.framework");
51  #else
52    Value = CONCAT2($ORIGIN/python-core-,PYVERSION);
53  #endif
54End
55#endif
56
57ProfileItem gid_Profileitem_Pythonloader_Pythonpath
58    ProfileID = gid_Profile_Pythonloader_Uno_Ini;
59    ModuleID = gid_Module_Optional_Pyuno;
60    Section = "Bootstrap";
61    Order = 1;
62    Key = "PYUNO_LOADER_PYTHONPATH";
63#ifdef SYSTEM_PYTHON
64    Value = "$ORIGIN";
65#else
66  #ifdef UNX
67    #ifdef MACOSX
68    #define FRAMEWORKLIB CONCAT4($ORIGIN/OOoPython.framework/Versions/,PYMAJMIN,/lib/python,PYMAJMIN)
69    Value = CONCAT4(FRAMEWORKLIB FRAMEWORKLIB,
70		   /lib-dynload FRAMEWORKLIB,
71		   /lib-tk FRAMEWORKLIB,
72		   /site-packages $ORIGIN);
73    #else
74    Value = CONCAT9($ORIGIN/python-core-,PYVERSION,
75		   /lib $ORIGIN/python-core-,PYVERSION,
76		   /lib/lib-dynload $ORIGIN/python-core-,PYVERSION,
77		   /lib/lib-tk $ORIGIN/python-core-,PYVERSION,
78		   /lib/site-packages $ORIGIN);
79    #endif
80  #else
81   #ifdef _gcc3
82    Value = STRING(CONCAT9($ORIGIN/python-core-,PYVERSION,
83		   /lib $ORIGIN/python-core-,PYVERSION,
84		   /lib/lib-dynload $ORIGIN/python-core-,PYVERSION,
85		   /lib/lib-tk $ORIGIN/python-core-,PYVERSION,
86		   /lib/site-packages $ORIGIN));
87   #else
88    Value = STRING(CONCAT5($ORIGIN/python-core-,PYVERSION,
89                   /lib $ORIGIN/python-core-,PYVERSION,
90		   /lib/site-packages $ORIGIN));
91   #endif
92  #endif
93#endif
94End
95