EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: importing jar files from CSS Python script
From: Hovanes Egiyan <[email protected]>
To: "[email protected]" <[email protected]>
Cc: [email protected]
Date: Thu, 30 Jan 2014 16:38:51 -0500
Hi,

we are trying to have a Python/Jython script associated with a widget in CSS BOY to work with a SQLite database using sqlite-jdbc. When we try to import "org.sqlite" , the "import" statement fails even if we add the actual jar-file full name to "sys.path" (which is somewhere in my home directory). It looks as if the "import"-statement does not care what the "sys.path" variable is. I could do this using regular Jython 2.5.2, but we are having problem doing this with CSS. How can we use external jar-files in the Python scripts in CSS, are these things
in CSS Python scripts supposed to work as they do in Jython?

Our current goal is to be able to read data from MySQL and SQLite databases
from our CSS BOY scripts. Any help would be appreciated.

Thanks,
    Hovanes Egiyan.

Replies:
Re: importing jar files from CSS Python script Xihui Chen

Navigate by Date:
Prev: Re: caget.c patch for dynamic array sizing J. Lewis Muir
Next: TPRO Field Definition Dudley, David
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: .NET client and server availble as NuGet packages Bertrand Alain Gregor
Next: Re: importing jar files from CSS Python script Xihui Chen
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 17 Dec 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·