1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 <2014> 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 | Index | 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 <2014> 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 |
<== Date ==> | <== Thread ==> |
---|
Subject: | importing "org.csstudio.utility.pv" in BOY Jython scripts |
From: | Hovanes Egiyan <[email protected]> |
To: | "[email protected]" <[email protected]> |
Date: | Tue, 15 Apr 2014 11:40:52 -0400 |
Hi,we have a quite large number of BOY OPI-s that use Jython scripts. These Jython scripts use "org.csstudio.utility.pv", namely PVFactory, so they contain the following line:
from org.csstudio.utility.pv import PVFactoryUntil now we have been using basic EPICS CSS 3.1.7 build from SNS , and now we would like to use the recent version 3.2.16. But what happens now with that version is that Jython fails to find the "org.csstudio.utility.pv" on the line shown above. That plugin is incuded in the plugin directory, and when I explicitly append the jar-file to the sys.path, then the scripts work. At this time I do not want to go into each script file and add a line to append the jar file. Instead, I was wandering if I can recompile EPICS CSS from SNS source in such a way that I do not need to specify the "org.csstudio.utility.pv" path myself in the scripts. Just getting the source for 3.2.26 and making the "org.csstudio.basic.epics.product" produces the same result. Is there something simple that I need to change in Eclipse when building the product to have that jar-file included in the list
when Jython loads? Thanks, Hovanes Egiyan.