summaryrefslogtreecommitdiff
path: root/pyuno
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2004-02-02 18:28:45 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2004-02-02 18:28:45 +0000
commit0b872a33efd251ab3047f2bc85a7634043417f17 (patch)
tree420995dbd38e927d38b61b44352a9442595cf3cc /pyuno
parent79cde1218a8c9d0e7da038874a325bae976e46cd (diff)
INTEGRATION: CWS geordi2q14 (1.2.34); FILE MERGED
2004/01/29 18:09:47 hr 1.2.34.1: #111934#: merge CWS ooo111fix2
Diffstat (limited to 'pyuno')
-rw-r--r--pyuno/source/loader/pythonloader.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/pyuno/source/loader/pythonloader.py b/pyuno/source/loader/pythonloader.py
index 386795594a84..8ec6c98f6242 100644
--- a/pyuno/source/loader/pythonloader.py
+++ b/pyuno/source/loader/pythonloader.py
@@ -2,9 +2,9 @@
#
# $RCSfile: pythonloader.py,v $
#
-# $Revision: 1.2 $
+# $Revision: 1.3 $
#
-# last change: $Author: jbu $ $Date: 2003-04-06 17:16:47 $
+# last change: $Author: hr $ $Date: 2004-02-02 19:28:45 $
#
# The Contents of this file are made available subject to the terms of
# either of the following licenses
@@ -99,11 +99,13 @@ class Loader( XImplementationLoader, XServiceInfo, unohelper.Base ):
try:
if "file" == protocol:
+ # remove \..\ sequence, which may be useful e.g. in the build env
+ url = unohelper.absolutize( url, url )
+
+ # did we load the module already ?
mod = g_loadedComponents.get( url )
if not mod:
mod = imp.new_module("uno_component")
- # remove \..\ sequence, which may be useful e.g. in the build env
- url = unohelper.absolutize( url, url )
# read the file
fileHandle = file( unohelper.fileUrlToSystemPath( url ) )