From c6a73009747814513ab5a7277c211449c7378870 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Fri, 16 Aug 2013 11:08:32 +0300 Subject: Use subfolder names from Change all instances of hardcoded "program", "share" etc subfolder names to use those from instead. In normal builds, the end result will not change. Change-Id: I91c95cd8e482818be67307e889ae6df887763f53 --- pyuno/source/module/pyuno_module.cxx | 6 ++++++ pyuno/source/module/pyuno_runtime.cxx | 6 ++++++ 2 files changed, 12 insertions(+) (limited to 'pyuno/source/module') diff --git a/pyuno/source/module/pyuno_module.cxx b/pyuno/source/module/pyuno_module.cxx index 1e812d1e28b3..fc6868ab70a4 100644 --- a/pyuno/source/module/pyuno_module.cxx +++ b/pyuno/source/module/pyuno_module.cxx @@ -17,6 +17,9 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ +#include +#include + #include "pyuno_impl.hxx" #include @@ -268,6 +271,9 @@ static PyObject* getComponentContext( OUStringBuffer iniFileName; iniFileName.append( path ); +#if HAVE_FEATURE_MACOSX_MACLIKE_APP_STRUCTURE + iniFileName.appendAscii( "/../" LIBO_ETC_FOLDER ); +#endif iniFileName.appendAscii( "/" ); iniFileName.appendAscii( SAL_CONFIGFILE( "pyuno" ) ); iniFile = iniFileName.makeStringAndClear(); diff --git a/pyuno/source/module/pyuno_runtime.cxx b/pyuno/source/module/pyuno_runtime.cxx index 00252180764f..a7bb1f28dc35 100644 --- a/pyuno/source/module/pyuno_runtime.cxx +++ b/pyuno/source/module/pyuno_runtime.cxx @@ -17,6 +17,9 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ +#include +#include + #include "pyuno_impl.hxx" #include @@ -175,6 +178,9 @@ static void readLoggingConfig( sal_Int32 *pLevel, FILE **ppFile ) reinterpret_cast< oslGenericFunction >(readLoggingConfig), (rtl_uString **) &fileName ); fileName = OUString( fileName.getStr(), fileName.lastIndexOf( '/' )+1 ); +#if HAVE_FEATURE_MACOSX_MACLIKE_APP_STRUCTURE + fileName += "../" LIBO_ETC_FOLDER "/"; +#endif fileName += OUString( SAL_CONFIGFILE("pyuno" )); rtl::Bootstrap bootstrapHandle( fileName ); -- cgit