Joerg Budischewski wrote:
Hi,

Stephan Bergmann wrote:

Joerg Budischewski wrote:

Hi Stephan,

you can remove the runtime instances, they just cash some hashmap lookups and have no side effects. The PyThreadAttach/Detach classes on the other hand have side effects and cannot be removed.

Would be nice if you can execute the pyuno tests in testtools/source/bridgetest/pyuno (at best before and ) after your modifications. You currently need to set UNO_TYPES and UNO_SERVICES environment variable to the values passed formerly by using the -env: command line switches, just have a look in the makefile.



I'm too dumb to get that working, independent of the CWS changes. What exactly do I need to do on a plain SRC680m130 to execute that test (on Linux)?

-Stephan

setenv UNO_SERVICES pyuno_regcomp.rdb
setenv UNO_TYPES pyuno_regcomp.rdb
setenv PYTHONPATH "$PYTHONPATH":"$SOLARVER"/"$UPD"/"$INPATH"/lib/pyuno

(the later is needed because of issue http://www.openoffice.org/issues/show_bug.cgi?id=53315 ), this works for me.

Bye,

Joerg

Still no success (see transcript of my attempts below).
-Stephan


-> echo $PYTHONPATH

PYTHONPATH: Undefined variable.

-> setenv UNO_SERVICES pyuno_regcomp.rdb
-> setenv UNO_TYPES pyuno_regcomp.rdb
-> setenv PYTHONPATH /so/ws/SRC680/unxlngi6.pro/lib.m130/pyuno

-> cd /so/ws/SRC680/src.m130/testtools/source/bridgetest/pyuno
-> dmake runtest

start test with dmake runtest
-------------
cd ../../../unxlngi6.pro/lib && python main.py
    -env:UNO_TYPES=pyuno_regcomp.rdb
    -env:UNO_SERVICES=pyuno_regcomp.rdb
Traceback (most recent call last):
  File "main.py", line 35, in ?
    import uno
  File "/so/ws/SRC680/unxlngi6.pro/lib.m130/pyuno/uno.py", line 37,
      in ?
    import pyuno
ImportError: No module named pyuno
dmake:  Error code 1, while making 'runtest'
'---* tg_merge.mk *---'
Exit 255

-> cd ../../../unxlngi6.pro/lib
-> python main.py

Traceback (most recent call last):
  File "main.py", line 35, in ?
    import uno
  File "/so/ws/SRC680/unxlngi6.pro/lib.m130/pyuno/uno.py", line 37,
      in ?
    import pyuno
ImportError: No module named pyuno
Exit 1

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to