Hi,
a very simple workaround for this pb:
replace in pythonloader.py:

                            src = "">                            # execute the module
                            exec src in mod.__dict__

with
                            src = "">                            # execute the module
                            exec src in mod.__dict__

Note this is naive, since it will replace any instance of the '\r\n' characters, but they may appear inside of a string, in which case they should not be replaced.

The other solution may be to use the "execfile" statement, which should not be so rigid with end of lines and so on.

David

2005/11/9, Joerg Budischewski <[EMAIL PROTECTED]>:
Hi,

there are several problems around the python exec statement, see e.g.

http://www.openoffice.org/issues/show_bug.cgi?id=54155

I'll try to workaround some of them in future (checking for a trailing
line feed and stripping windows line feeds ...

Bye,

Joerg


[EMAIL PROTECTED] wrote:

> Sorry for bothering you. I've just sorted the problem out. It seems that the
> fact that the python source was in Windows format (you know, the old
> end-of-line issue) was troubling somewhow the installation. However, this
> should not happen really, because python specs state that this should make no
> difference.
>
> Even the most innocent component as the one in attachment won't be installed.
>
> I tried this on OOo1.1.3 only. I don't know if this holds for more recent
> versions.
>
> Thank you all, anyway. Cheers,
>
> Jorge.
>
> Selon Christian Junker <[EMAIL PROTECTED]>:
>
>
>>Jorge,
>>
>>2005/11/9, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
>>
>>>where python is the batch provided by OOo and mycomp.py is the thing I am
>>
>>trying
>>
>>>to install, everything goes ok. That message only appears on installation.
>>
>>can you please submit an issue with an exact description and give
>>me/us the URL to it, I will have a look at it.
>>Would be nice, thanks.
>>
>>--
>>Best Regards
>>Christian Junker
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
>
>
> ------------------------------------------------------------------------
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]



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


Reply via email to