summaryrefslogtreecommitdiff
path: root/pyuno
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-12-02 18:12:54 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-12-03 15:19:55 +0100
commit827430c8c0417396b3c1d2a049ccddb818c89646 (patch)
tree2b249c14dcbfb725469b4dd70c125d00486d2a84 /pyuno
parent1924d05e706e6308b4de3b6103ebb73976866d66 (diff)
Fold URE: Windows
...assuming the delayLoadHook in cli_ure/source/native/native_bootstrap.cxx is no longer necessary and loading of cppuhelper from the program dir cannot fail regardless in whatever scenario the cli_cppuhelper library itself is loaded. Change-Id: I13f32b327bca4cce9780864f5e57cdad3860afe5
Diffstat (limited to 'pyuno')
-rw-r--r--pyuno/zipcore/python.cxx21
1 files changed, 3 insertions, 18 deletions
diff --git a/pyuno/zipcore/python.cxx b/pyuno/zipcore/python.cxx
index 517a6ae67845..0e8bb6c6ff0b 100644
--- a/pyuno/zipcore/python.cxx
+++ b/pyuno/zipcore/python.cxx
@@ -131,21 +131,6 @@ int wmain(int argc, wchar_t ** argv, wchar_t **) {
if (pythonexeEnd == NULL) {
exit(EXIT_FAILURE);
}
- wchar_t urepath[MAX_PATH];
- if (tools::buildPath(urepath, path, pathEnd, MY_STRING(L"..\\ure-link"))
- == NULL)
- {
- exit(EXIT_FAILURE);
- }
- wchar_t * urepathEnd = tools::resolveLink(urepath);
- if (urepathEnd == NULL) {
- exit(EXIT_FAILURE);
- }
- urepathEnd = tools::buildPath(
- urepath, urepath, urepathEnd, MY_STRING(L"\\bin"));
- if (urepathEnd == NULL) {
- exit(EXIT_FAILURE);
- }
std::size_t clSize = MY_LENGTH(L"\"") + 4 * (pythonexeEnd - pythonexe) +
MY_LENGTH(L"\"\0"); //TODO: overflow
// 4 * len: each char preceded by backslash, each trailing backslash
@@ -192,12 +177,12 @@ int wmain(int argc, wchar_t ** argv, wchar_t **) {
exit(EXIT_FAILURE);
}
}
- std::size_t len = (urepathEnd - urepath) + MY_LENGTH(L";") +
- (pathEnd - path) + (n == 0 ? 0 : MY_LENGTH(L";") + (n - 1)) + 1;
+ std::size_t len = (pathEnd - path) + (n == 0 ? 0 : MY_LENGTH(L";") +
+ (n - 1)) + 1;
//TODO: overflow
wchar_t * value = new wchar_t[len];
_snwprintf(
- value, len, L"%s;%s%s%s", urepath, path, n == 0 ? L"" : L";", orig);
+ value, len, L"%s%s%s", path, n == 0 ? L"" : L";", orig);
if (!SetEnvironmentVariableW(L"PATH", value)) {
exit(EXIT_FAILURE);
}