[omniORB] small omniidl problem

bjorn rohde jensen shamus@tdcadsl.dk
Thu, 04 Apr 2002 14:24:42 +0200


Hi Harri,

 That looks like a much more promising fix, i guess,
i have learnt a little python from this. The fix
should work on windows too, but could someone please
verify that?

Yours sincerely,

bjorn

Harri Pasanen wrote:
> 
> 
> I ran into the same problem.
> 
> My fix was to replace above in the same file the lines:
> 
> if hasattr(_omniidl, "__file__"):
>     preprocessor_path = os.path.dirname(_omniidl.__file__)
> else:
>     preprocessor_path = os.path.dirname(sys.argv[0])
> 
> with just
> 
> preprocessor_path = os.path.dirname(sys.argv[0])
> 
> At least on unix platforms that should always work.  I'm not sure about
> Windows.
> 
> -Harri