|
From: Konrad H. <kon...@fa...> - 2011-05-14 13:45:45
|
On 13 May 2011, at 23:00, Pierre Thibault wrote: > If can use the __file__ attribute of your main script to locate your > jar relatively to its location with something like: > > sys.path.append(os.path.join(os.path.dirname(__file__), > 'name_of_jar.jar)) > > I don't think it is a lot of work. :-) The problem is not making up the correct path, but setting it before any script is run. To make it worse, in my real application the script is run through a ScriptingEngine (JSR 223 interface). I'll have to figure out how Jython gets initialized when used in this way. But it looks doable... Konrad. |