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 Dir = gid_Dir_Program; 35 Styles = (NETWORK); 36End 37 38#ifndef SYSTEM_PYTHON 39ProfileItem gid_Profileitem_Pythonloader_Pythonhome 40 ProfileID = gid_Profile_Pythonloader_Uno_Ini; 41 ModuleID = gid_Module_Optional_Pyuno; 42 Section = "Bootstrap"; 43 Order = 1; 44 Key = "PYUNO_LOADER_PYTHONHOME"; 45 #ifdef MACOSX 46 Value = CONCAT2($ORIGIN,"OOoPython.framework"); 47 #else 48 Value = CONCAT2($ORIGIN/python-core-,PYVERSION); 49 #endif 50End 51#endif 52 53ProfileItem gid_Profileitem_Pythonloader_Pythonpath 54 ProfileID = gid_Profile_Pythonloader_Uno_Ini; 55 ModuleID = gid_Module_Optional_Pyuno; 56 Section = "Bootstrap"; 57 Order = 1; 58 Key = "PYUNO_LOADER_PYTHONPATH"; 59#ifdef SYSTEM_PYTHON 60 Value = "$ORIGIN"; 61#else 62 #ifdef UNX 63 #ifdef MACOSX 64 #define FRAMEWORKLIB CONCAT4($ORIGIN/OOoPython.framework/Versions/,PYMAJMIN,/lib/python,PYMAJMIN) 65 Value = CONCAT4(FRAMEWORKLIB FRAMEWORKLIB, 66 /lib-dynload FRAMEWORKLIB, 67 /lib-tk FRAMEWORKLIB, 68 /site-packages $ORIGIN); 69 #else 70 Value = CONCAT9($ORIGIN/python-core-,PYVERSION, 71 /lib $ORIGIN/python-core-,PYVERSION, 72 /lib/lib-dynload $ORIGIN/python-core-,PYVERSION, 73 /lib/lib-tk $ORIGIN/python-core-,PYVERSION, 74 /lib/site-packages $ORIGIN); 75 #endif 76 #else 77 #ifdef _gcc3 78 Value = STRING(CONCAT9($ORIGIN/python-core-,PYVERSION, 79 /lib $ORIGIN/python-core-,PYVERSION, 80 /lib/lib-dynload $ORIGIN/python-core-,PYVERSION, 81 /lib/lib-tk $ORIGIN/python-core-,PYVERSION, 82 /lib/site-packages $ORIGIN)); 83 #else 84 Value = STRING(CONCAT5($ORIGIN/python-core-,PYVERSION, 85 /lib $ORIGIN/python-core-,PYVERSION, 86 /lib/site-packages $ORIGIN)); 87 #endif 88 #endif 89#endif 90End 91