xref: /trunk/main/scp2/source/python/profileitem_python.scp (revision 45c5a00162811bd03b87fcb4fe9996782f2b59ec)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements.  See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership.  The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance
9 * with the License.  You may obtain a copy of the License at
10 *
11 *   http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied.  See the License for the
17 * specific language governing permissions and limitations
18 * under the License.
19 *
20 *************************************************************/
21
22
23
24#include "macros.inc"
25
26
27Profile gid_Profile_Pythonloader_Uno_Ini
28    ModuleID = gid_Module_Optional_Pyuno;
29  #ifdef UNX
30    Name = "pythonloader.unorc";
31  #else
32    Name = "pythonloader.uno.ini";
33  #endif
34#if defined MACOSX
35    Dir = gid_Brand_Dir_Program;
36#else
37    Dir = gid_Dir_Common_Ure;
38#endif
39//    Dir = gid_Dir_Program;
40    Styles = (NETWORK);
41End
42
43#ifndef SYSTEM_PYTHON
44ProfileItem gid_Profileitem_Pythonloader_Pythonhome
45    ProfileID = gid_Profile_Pythonloader_Uno_Ini;
46    ModuleID = gid_Module_Optional_Pyuno;
47    Section = "Bootstrap";
48    Order = 1;
49    Key = "PYUNO_LOADER_PYTHONHOME";
50    Value = CONCAT2($ORIGIN/python-core-,PYVERSION);
51End
52#endif
53
54ProfileItem gid_Profileitem_Pythonloader_Pythonpath
55    ProfileID = gid_Profile_Pythonloader_Uno_Ini;
56    ModuleID = gid_Module_Optional_Pyuno;
57    Section = "Bootstrap";
58    Order = 1;
59    Key = "PYUNO_LOADER_PYTHONPATH";
60#ifdef SYSTEM_PYTHON
61    Value = "$ORIGIN";
62#else
63  #ifdef UNX
64    Value = CONCAT7($ORIGIN/python-core-,PYVERSION,
65           /lib $ORIGIN/python-core-,PYVERSION,
66           /lib/lib-dynload $ORIGIN/python-core-,PYVERSION,
67           /lib/site-packages $ORIGIN);
68  #else
69   #ifdef _gcc3
70    Value = STRING(CONCAT7($ORIGIN/python-core-,PYVERSION,
71           /lib $ORIGIN/python-core-,PYVERSION,
72           /lib/lib-dynload $ORIGIN/python-core-,PYVERSION,
73           /lib/site-packages $ORIGIN));
74   #else
75    Value = STRING(CONCAT5($ORIGIN/python-core-,PYVERSION,
76                   /lib $ORIGIN/python-core-,PYVERSION,
77           /lib/site-packages $ORIGIN));
78   #endif
79  #endif
80#endif
81End
82